public final class AuDomainCreateCommandV1 extends DomainCreateCommand
DomainCreateCommand
, as the au 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 |
---|
AuDomainCreateCommandV1(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,
java.lang.String auEligibilityType,
int auPolicyReason,
java.lang.String auRegistrantName,
java.lang.String auRegistrantID,
java.lang.String auRegistrantIDType,
java.lang.String auEligibilityName,
java.lang.String auEligibilityID,
java.lang.String auEligibilityIDType)
Full data specification constructor for a domain:create + auext:create
EPP command.
|
AuDomainCreateCommandV1(java.lang.String name,
java.lang.String pw,
java.lang.String registrantID,
java.lang.String[] techContacts,
java.lang.String auEligibilityType,
int auPolicyReason,
java.lang.String auRegistrantName)
Minimal constructor for creating a domain:create + auext: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 AuDomainCreateCommandV1(java.lang.String name, java.lang.String pw, java.lang.String registrantID, java.lang.String[] techContacts, java.lang.String auEligibilityType, int auPolicyReason, java.lang.String auRegistrantName)
java.lang.IllegalArgumentException
- if any required parameters are null
.public AuDomainCreateCommandV1(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, java.lang.String auEligibilityType, int auPolicyReason, java.lang.String auRegistrantName, java.lang.String auRegistrantID, java.lang.String auRegistrantIDType, java.lang.String auEligibilityName, java.lang.String auEligibilityID, java.lang.String auEligibilityIDType)
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"'.auEligibilityType
- auext:eligType. Required.auPolicyReason
- auext:policyReason.auRegistrantName
- auext:registrantName. Required.auRegistrantID
- auext:registrantID.auRegistrantIDType
- auext:registrantID type attribute.auEligibilityName
- auext:eligibilityName.auEligibilityID
- auext:eligibilityID.auEligibilityIDType
- auext:eligibilityID type attribute.java.lang.IllegalArgumentException
- if auEligibilityType
or auRegistrantName
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