Package com.verisign.epp.codec.contact
Class EPPContactCreateCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPCreateCmd
com.verisign.epp.codec.contact.EPPContactCreateCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP Contact <create> command, which provides a transform
that allows a client to create a contact object. In addition to the standard
EPP command elements, the <create> command MUST contain a
<contact:create> element that identifies the contact namespace and the
location of the contact schema. The <contact:create> element contains
the following child elements:
- A <contact:id> element that contains the server-unique identifier
of the contact object. Use
getIdandsetIdto get and set the elements. - A <contact:postalInfo> element that contains the postal contacts.
Use
getPostalInfo,addPostalInfoandsetPostalInfoto get, add and set the elements. - An OPTIONAL <contact:i15d> ("i15d" is short for
"internationalized") element that contains child elements whose content SHALL
be represented in unrestricted UTF-8. Use
getI15dandsetI15dto get and set the elements. - An OPTIONAL <contact:voice> element that contains the contact's
voice telephone number. Use
getVoiceandsetVoiceto get and set the elements. - An OPTIONAL <contact:fax> element that contains the contact's
facsimile telephone number. Use
getFaxandsetFaxto get and set the elements. - A <contact:email> element that contains the contact's e-mail
address. Use
getEmailandsetEmailto get and set the elements. - A <contact:authInfo> element that contains authorization
information associated with the contact object. This element MUST NOT be
provided if the querying client is not the current sponsoring client. Use
getAuthInfoandsetAuthInfoto get and set the element.
EPPContactCreateReponse is the response associated with
EPPContactCreateCmd. - See Also:
-
Field Summary
Fields inherited from class com.verisign.epp.codec.gen.EPPCommand
extensions, OP_APPROVE, OP_CANCEL, OP_QUERY, OP_REJECT, OP_REQUEST, transId, TYPE_CHECK, TYPE_CREATE, TYPE_DELETE, TYPE_INFO, TYPE_LOGIN, TYPE_LOGOUT, TYPE_POLL, TYPE_RENEW, TYPE_TRANSFER, TYPE_UPDATE -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor of EPPContactCreateCmd Allocates a newEPPContactCreateCmdwith default attribute values.EPPContactCreateCmd(String aTransId) Constructor of EPPContactCreateCmd Allocates a newEPPContactCreateCmdwith the contact definition information.EPPContactCreateCmd(String aTransId, String aId, EPPContactPostalDefinition aPostalContact, String aEmail, EPPAuthInfo aAuthInfo) Constructor of EPPContactCreateCmd Allocates a newEPPContactCreateCmdwith the contact definition information. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPostalInfo(EPPContactPostalDefinition newPostalInfo) Adds contact postalInfo.clone()CloneEPPContactCreateCmd.protected voidDecode the EPPContactCreateCmd attributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of the EPPContactCreateCmd instance.booleanCompare an instance ofEPPContactCreateCmdwith this instance.Get authorization information.Get disclose information.getEmail()Get email.getFax()Get fax number.Get fax number extension.getId()Gets the contact id.getKey()Gets the key for the contact object, which is the contact identifier.Get the EPP command Namespace associated with EPPContactCreateCmd.Get postalInfo elements of contact.getVoice()Get voice number.Get voice number extension.booleanReturnstrueif the contact has auth info.booleanReturnstrueif the contact has disclose flag.booleanhasEmail()Returnstrueif the contact has email.booleanhasFax()Returnstrueif the contact has fax.booleanReturnstrueif the contact has fax extension.booleanhasId()Returnstrueif the contact has contact ID.booleanReturnstrueif the contact has postal info.booleanhasVoice()Returnstrueif the contact has voice.booleanReturnstrueif the contact has voice extension.voidsetAuthInfo(EPPAuthInfo newAuthInfo) Set authorization information.voidsetDisclose(EPPContactDisclose newDisclose) Set disclose information.voidSet email.voidSet fax number.voidSet fax number extension.voidSet the contact id.voidsetPostalInfo(Vector newPostalContacts) Set contact postalInfo.voidSet contact voice number.voidsetVoiceExt(String newVoiceExt) Set contact voice extension.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class com.verisign.epp.codec.gen.EPPCreateCmd
doGenDecode, doGenEncode, getTypeMethods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasKey, hasTransId, setExtension, setExtensions, setTransId
-
Constructor Details
-
EPPContactCreateCmd
public EPPContactCreateCmd()Default constructor of EPPContactCreateCmd Allocates a newEPPContactCreateCmdwith default attribute values. -
EPPContactCreateCmd
Constructor of EPPContactCreateCmd Allocates a newEPPContactCreateCmdwith the contact definition information.- Parameters:
aTransId- command transaction id
-
EPPContactCreateCmd
public EPPContactCreateCmd(String aTransId, String aId, EPPContactPostalDefinition aPostalContact, String aEmail, EPPAuthInfo aAuthInfo) Constructor of EPPContactCreateCmd Allocates a newEPPContactCreateCmdwith the contact definition information.- Parameters:
aTransId- command transaction idaId- String IDaPostalContact- postalInfo element of contactaEmail- String emailaAuthInfo- authorization information
-
-
Method Details
-
getNamespace
Get the EPP command Namespace associated with EPPContactCreateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPContactMapFactory.NS
-
getKey
Gets the key for the contact object, which is the contact identifier.- Overrides:
getKeyin classEPPCommand- Returns:
- The host identifier if set;
nullotherwise.
-
doEncode
Encode a DOM Element tree from the attributes of the EPPContactCreateCmd instance.- Specified by:
doEncodein classEPPCreateCmd- Parameters:
aDocument- - DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the EPPContactCreateCmd instance.
- Throws:
EPPEncodeException- Unable to encode EPPContactCreateCmd instance.
-
doDecode
Decode the EPPContactCreateCmd attributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPCreateCmd- Parameters:
aElement- - Root DOM Element to decode EPPContactCreateCmd from.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
Compare an instance ofEPPContactCreateCmdwith this instance.- Overrides:
equalsin classEPPCreateCmd- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise
-
clone
CloneEPPContactCreateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPContactCreateCmd - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
hasPostalContacts
public boolean hasPostalContacts()Returnstrueif the contact has postal info.- Returns:
trueif the contact has postal infofalseotherwise
-
getPostalInfo
Get postalInfo elements of contact.- Returns:
- java.util.Vector
-
setPostalInfo
Set contact postalInfo.- Parameters:
newPostalContacts- java.util.Vector
-
addPostalInfo
Adds contact postalInfo.- Parameters:
newPostalInfo- com.verisign.epp.codec.contact.EPPContactPostalDefinition
-
hasAuthInfo
public boolean hasAuthInfo()Returnstrueif the contact has auth info.- Returns:
trueif the contact has auth info infofalseotherwise
-
getAuthInfo
Get authorization information.- Returns:
- com.verisign.epp.codec.gen.EPPAuthInfo
-
setAuthInfo
Set authorization information.- Parameters:
newAuthInfo- com.verisign.epp.codec.gen.EPPAuthInfo
-
hasDisclose
public boolean hasDisclose()Returnstrueif the contact has disclose flag.- Returns:
trueif the contact has disclose flagfalseotherwise
-
getDisclose
Get disclose information.- Returns:
- Disclose information if defined;
nullotherwise;
-
setDisclose
Set disclose information.- Parameters:
newDisclose- com.verisign.epp.codec.gen.EPPContactDisclose
-
hasEmail
public boolean hasEmail()Returnstrueif the contact has email.- Returns:
trueif the contact has emailfalseotherwise
-
getEmail
Get email.- Returns:
- email if defined;
nullotherwise.
-
setEmail
Set email.- Parameters:
newEmail- String
-
hasFax
public boolean hasFax()Returnstrueif the contact has fax.- Returns:
trueif the contact has faxfalseotherwise
-
getFax
Get fax number.- Returns:
- Fax number if defined;
nullotherwise.
-
setFax
Set fax number.- Parameters:
newFax- Fax number
-
hasFaxExt
public boolean hasFaxExt()Returnstrueif the contact has fax extension.- Returns:
trueif the contact has fax extensionfalseotherwise
-
getFaxExt
Get fax number extension.- Returns:
- fax number extension if defined;
nullotherwise.
-
setFaxExt
Set fax number extension.- Parameters:
newFaxExt- Fax number extension
-
hasId
public boolean hasId()Returnstrueif the contact has contact ID.- Returns:
trueif the contact has contact IDfalseotherwise
-
getId
Gets the contact id.- Returns:
- Contact id if set;
nullotherwise.
-
setId
Set the contact id.- Parameters:
aId- String
-
hasVoice
public boolean hasVoice()Returnstrueif the contact has voice.- Returns:
trueif the contact has voicefalseotherwise
-
getVoice
Get voice number.- Returns:
- Voice number if defined;
nullotherwise.
-
setVoice
Set contact voice number.- Parameters:
newVoice- voice number
-
hasVoiceExt
public boolean hasVoiceExt()Returnstrueif the contact has voice extension.- Returns:
trueif the contact has voice extensionfalseotherwise
-
getVoiceExt
Get voice number extension.- Returns:
- Voice number extension if defined;
nullotherwise.
-
setVoiceExt
Set contact voice extension.- Parameters:
newVoiceExt- voice extension
-