public final class DomainRegistrantTransferCommand extends Command
toXML()
method in Command serialises this object to
XML.Modifier and Type | Field and Description |
---|---|
protected java.util.logging.Logger |
userLogger |
protected XMLWriter |
xmlWriter |
cmdElement, command, extension
Constructor and Description |
---|
DomainRegistrantTransferCommand(java.lang.String name,
java.util.GregorianCalendar curExpDate,
Period period,
java.lang.String kvListName,
java.lang.String explanation)
Request that the domain name be transferred to the legal entity
specified by the extension data that is provided in the key-value list.
|
DomainRegistrantTransferCommand(java.lang.String name,
java.util.GregorianCalendar curExpDate,
java.lang.String kvListName,
java.lang.String explanation) |
Modifier and Type | Method and Description |
---|---|
void |
addItem(java.lang.String key,
java.lang.String value)
Adds a key-value item into the list, to be included in the command when
the XML is generated.
|
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.
|
appendExtension, getCommandType, getExtensionElement, getXmlWriter
protected final transient XMLWriter xmlWriter
protected final transient java.util.logging.Logger userLogger
public DomainRegistrantTransferCommand(java.lang.String name, java.util.GregorianCalendar curExpDate, java.lang.String kvListName, java.lang.String explanation)
public DomainRegistrantTransferCommand(java.lang.String name, java.util.GregorianCalendar curExpDate, Period period, java.lang.String kvListName, java.lang.String explanation)
name
- The domain name to transfer.curExpDate
- The current expiry of the identified domain name. This is
required in order to prevent repeated transfer of the name due
to protocol transmission failures.period
- The desired new validity period, starting from the time the
transfer completes successfully. Optional.kvListName
- The name under which the list of key-value items are aggregated.explanation
- An explanation of how the transfer was effected.public void addItem(java.lang.String key, java.lang.String value)
protected java.lang.String toXMLImpl(XmlOutputConfig xmlOutputConfig) throws org.xml.sax.SAXException
Command
protected void initCmdElement()
initCmdElement
in class Command
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