public class DomainRestoreReportCommand extends UpdateCommand
Representation of the EPP Domain Update command with the Domain Restore Report aspect of the Registry Grace Period extension.
Use this to post a Domain Restoration Report for restoring a domain from a "pending restore" RGP state as part of an EPP Domain Update command compliant with RFC5730, RFC5731 and RFC3915. The response expected from a server should be handled by a Domain Restore Response
Modifier and Type | Field and Description |
---|---|
protected java.util.logging.Logger |
userLogger |
protected XMLWriter |
xmlWriter |
objElement
cmdElement, command, extension
Constructor and Description |
---|
DomainRestoreReportCommand(java.lang.String name,
java.lang.String preData,
java.lang.String postData,
java.util.GregorianCalendar delTime,
java.util.GregorianCalendar resTime,
ReportTextElement resReason,
ReportTextElement statement,
ReportTextElement secondStatement,
java.lang.String other)
Constructor allowing all possible fields for a domain restore report command.
|
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 final transient XMLWriter xmlWriter
protected final transient java.util.logging.Logger userLogger
public DomainRestoreReportCommand(java.lang.String name, java.lang.String preData, java.lang.String postData, java.util.GregorianCalendar delTime, java.util.GregorianCalendar resTime, ReportTextElement resReason, ReportTextElement statement, ReportTextElement secondStatement, java.lang.String other)
Constructor allowing all possible fields for a domain restore report command.
name
- Required.preData
- Required.postData
- Required.delTime
- Required.resTime
- Required.resReason
- Required.statement
- Required.secondStatement
- Optional.other
- Optional.java.lang.IllegalArgumentException
- if name
, preData
, postData
, delTime
,
resTime
, resReason
or statement
is 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