public abstract class Command
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.w3c.dom.Element |
cmdElement |
protected org.w3c.dom.Element |
command |
protected org.w3c.dom.Element |
extension |
protected java.util.logging.Logger |
userLogger |
protected XMLWriter |
xmlWriter |
Constructor and Description |
---|
Command(CommandType commandType) |
Modifier and Type | Method and Description |
---|---|
int |
appendExtension(CommandExtension ce) |
CommandType |
getCommandType() |
org.w3c.dom.Element |
getExtensionElement() |
XMLWriter |
getXmlWriter() |
protected void |
initCmdElement() |
java.lang.String |
toXML()
Serialize the EPP service element to XML.
|
java.lang.String |
toXML(XmlOutputConfig outputConfig)
Serialize the EPP service element to XML using the given output config.
|
protected java.lang.String |
toXMLImpl(XmlOutputConfig xmlOutputConfig)
Serialize the EPP command service element to XML.
|
protected org.w3c.dom.Element cmdElement
protected org.w3c.dom.Element command
protected org.w3c.dom.Element extension
protected final transient XMLWriter xmlWriter
protected final transient java.util.logging.Logger userLogger
public Command(CommandType commandType)
java.lang.IllegalArgumentException
- if commandType
is null
.public org.w3c.dom.Element getExtensionElement()
protected void initCmdElement()
public CommandType getCommandType()
protected java.lang.String toXMLImpl(XmlOutputConfig xmlOutputConfig) throws org.xml.sax.SAXException
org.xml.sax.SAXException
- The XML representation of the command
failed schema validation. Further attempts to serialize this command
will also fail.public int appendExtension(CommandExtension ce)
public XMLWriter getXmlWriter()
public final java.lang.String toXML() throws org.xml.sax.SAXException
org.xml.sax.SAXException
- The XML representation of the command
failed schema validation. Further attempts to serialize this command
will also fail.toXML
public final java.lang.String toXML(XmlOutputConfig outputConfig) throws org.xml.sax.SAXException
outputConfig
- a configuration that indicates how to output the XMLorg.xml.sax.SAXException
XmlOutputConfig