public abstract class ObjectCommand extends Command
Modifier and Type | Field and Description |
---|---|
protected org.w3c.dom.Element |
objElement |
protected java.util.logging.Logger |
userLogger |
protected XMLWriter |
xmlWriter |
cmdElement, command, extension
Constructor and Description |
---|
ObjectCommand(CommandType commandType,
ObjectType objectType)
Construct the DOM tree component common to all object-mapped commands
which operates on objects related to user.
|
ObjectCommand(CommandType commandType,
ObjectType objectType,
java.lang.String ident)
Construct the DOM tree component common to all object-mapped commands
which operate on a single object.
|
ObjectCommand(CommandType commandType,
ObjectType objectType,
java.lang.String[] idents)
Construct the DOM tree component common to all object-mapped commands
which take multiple object identifiers as parameters.
|
ObjectCommand(CommandType commandType,
ObjectType objectType,
java.lang.String ident,
java.lang.String attrName,
java.lang.String attrValue)
Construct the DOM tree component common to all object-mapped commands
which operate on a single object, and assign it the attribute name and value.
|
Modifier and Type | Method and Description |
---|---|
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.
|
appendExtension, getCommandType, getExtensionElement, getXmlWriter, initCmdElement, toXMLImpl
protected org.w3c.dom.Element objElement
protected final transient XMLWriter xmlWriter
protected final transient java.util.logging.Logger userLogger
public ObjectCommand(CommandType commandType, ObjectType objectType, java.lang.String[] idents)
java.lang.IllegalArgumentException
- if objectType
or idents
are null
, or if
idents
is empty.public ObjectCommand(CommandType commandType, ObjectType objectType, java.lang.String ident)
java.lang.IllegalArgumentException
- if objectType
or ident
are null
.public ObjectCommand(CommandType commandType, ObjectType objectType)
java.lang.IllegalArgumentException
- if objectType
is null
.public ObjectCommand(CommandType commandType, ObjectType objectType, java.lang.String ident, java.lang.String attrName, java.lang.String attrValue)
java.lang.IllegalArgumentException
- if objectType
or ident
are null
.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