public final class AeDomainCreateCommand extends DomainCreateCommand
DomainCreateCommand
, as the ae extension
data is mandatory. Use this class to generate a standards-compliant XML
document, given simple input parameters. The toXML method in Command
serialises this object to XML. The response expected from a server should be
handled by a DomainCreateResponse
object.Modifier and Type | Field and Description |
---|---|
protected java.util.logging.Logger |
userLogger |
protected XMLWriter |
xmlWriter |
EMPTY_NAMESERVERS
objElement
cmdElement, command, extension
Constructor and Description |
---|
AeDomainCreateCommand(java.lang.String name,
java.lang.String pw,
java.lang.String registrantID,
java.lang.String[] techContacts,
java.lang.String[] adminContacts,
java.lang.String[] billingContacts,
java.lang.String[] nameservers,
Period period,
java.lang.String aeEligibilityType,
int aePolicyReason,
java.lang.String aeRegistrantName,
java.lang.String aeRegistrantID,
java.lang.String aeRegistrantIDType,
java.lang.String aeEligibilityName,
java.lang.String aeEligibilityID,
java.lang.String aeEligibilityIDType)
Full data specification constructor for a domain:create + aeext:create
EPP command.
|
AeDomainCreateCommand(java.lang.String name,
java.lang.String pw,
java.lang.String registrantID,
java.lang.String[] techContacts,
java.lang.String aeEligibilityType,
int aePolicyReason,
java.lang.String aeRegistrantName)
Minimal constructor for creating a domain:create + aeext:create EPP
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 AeDomainCreateCommand(java.lang.String name, java.lang.String pw, java.lang.String registrantID, java.lang.String[] techContacts, java.lang.String aeEligibilityType, int aePolicyReason, java.lang.String aeRegistrantName)
public AeDomainCreateCommand(java.lang.String name, java.lang.String pw, java.lang.String registrantID, java.lang.String[] techContacts, java.lang.String[] adminContacts, java.lang.String[] billingContacts, java.lang.String[] nameservers, Period period, java.lang.String aeEligibilityType, int aePolicyReason, java.lang.String aeRegistrantName, java.lang.String aeRegistrantID, java.lang.String aeRegistrantIDType, java.lang.String aeEligibilityName, java.lang.String aeEligibilityID, java.lang.String aeEligibilityIDType)
name
- The name of the new domain.pw
- The password to assign to the domain (also known as authInfo
or authorisation information).registrantID
- The identifier of an existing contact to assign as the
registrant contact for this domain. Failure to ensure the
contact exists prior to using them in this way will result in
an EPP result of '2303 "Object does not exist"'.techContacts
- The identifiers of existing contacts to assign as technical
contacts for this domain. Failure to ensure the contacts exist
prior to using them in this way will result in an EPP result
of '2303 "Object does not exist"'.adminContacts
- See techContacts (substitute administrative for technical).billingContacts
- See techContacts (substitute billing for technical).nameservers
- The names of existing hosts to delegate the domain being
created to. Failure to ensure the hosts exist prior to using
them in this way will result in an EPP result of '2303 "Object
does not exist"'.period
- The initial registration period of the domain object. A server
may define a default initial registration period if not
specified by the client.aeEligibilityType
- aeext:eligType.aePolicyReason
- aeext:policyReason.aeRegistrantName
- aeext:registrantName.aeRegistrantID
- aeext:registrantID.aeRegistrantIDType
- aeext:registrantID type attribute.aeEligibilityName
- aeext:eligibilityName.aeEligibilityID
- aeext:eligibilityID.aeEligibilityIDType
- aeext:eligibilityID type attribute.java.lang.IllegalArgumentException
- if eligibilityType
or registrantIDType
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