public class HostCreateCommand extends CreateCommand
HostCreateResponse
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected java.util.logging.Logger |
userLogger |
protected XMLWriter |
xmlWriter |
objElement
cmdElement, command, extension
Constructor and Description |
---|
HostCreateCommand(java.lang.String name)
Provision a host with the specified details which constitute the
minimum valid parameters according to the EPP specification.
|
HostCreateCommand(java.lang.String name,
InetAddress[] addresses)
Provision a host with the specified details.
|
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 HostCreateCommand(java.lang.String name)
name
- The new host's name.public HostCreateCommand(java.lang.String name, InetAddress[] addresses)
name
- The new host's name.addresses
- The Internet addresses of the host to be provisioned.
These should only be specified if the parent domain is sponsored by the
client provisioning this host and the parent domain is provisioned in
the domain name registry in which this host is being provisioned. That
is, external hosts must not be assigned Internet addresses.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