public class ContactCreateCommand extends CreateCommand
ContactCreateResponse
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected java.util.logging.Logger |
userLogger |
protected XMLWriter |
xmlWriter |
objElement
cmdElement, command, extension
Constructor and Description |
---|
ContactCreateCommand(java.lang.String id,
java.lang.String pw,
PostalInfo postalInfo,
LocalPostalInfo localPostalInfo,
java.lang.String voice,
java.lang.String voiceExt,
java.lang.String fax,
java.lang.String faxExt,
java.lang.String email,
Disclose disclose)
Provision a contact with the specified details.
|
ContactCreateCommand(java.lang.String id,
java.lang.String pw,
PostalInfo postalInfo,
java.lang.String email)
Provision a contact with the specified details which constitute the
minimum valid parameters according to the EPP specification.
|
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 ContactCreateCommand(java.lang.String id, java.lang.String pw, PostalInfo postalInfo, java.lang.String email)
id
- The new contact's identifier.pw
- The password to assign to the contact (also known as authInfo
or authorisation information).postalInfo
- The postal information for the new contact. This may be
either of type IntPostalInfo or LocalPostalInfo.email
- The contact's email address.public ContactCreateCommand(java.lang.String id, java.lang.String pw, PostalInfo postalInfo, LocalPostalInfo localPostalInfo, java.lang.String voice, java.lang.String voiceExt, java.lang.String fax, java.lang.String faxExt, java.lang.String email, Disclose disclose)
id
- The new contact's identifier. Required.pw
- The password to assign to the contact (also known as authInfo
or authorisation information). Required.postalInfo
- Postal information for the new contact. If
localPostalInfo is also specified, then this MUST be IntPostalInfo.
Required if localPostInfo
is not supplied.localPostalInfo
- Local postal information for the new contact.
Required if postalInfo
is not supplied.voice
- The contact's voice telephone number.voiceExt
- The extension for the contact's voice telephone number,
if applicable.fax
- The contact's fax telephone number.faxExt
- The extension for the contact's fax telephone number, if
applicable.email
- The contact's email address. Required.disclose
- Disclosure request information, which may modify what
information is disclosed by the Registry system in response to queries.
Note that the server may not accept specification of this parameter, or
may ignore any requests described by this parameter.java.lang.IllegalArgumentException
- if any required parameter 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