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,java.io.Serializable,java.lang.Cloneable
public class EPPContactCreateCmd extends EPPCreateCmd
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.
EPPContactCreateReponseis the response associated withEPPContactCreateCmd.
- See Also:
EPPResponse,EPPContactPostalDefinition, Serialized Form
-
-
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
Constructors Constructor Description EPPContactCreateCmd()Default constructor of EPPContactCreateCmd Allocates a newEPPContactCreateCmdwith default attribute values.EPPContactCreateCmd(java.lang.String aTransId)Constructor of EPPContactCreateCmd Allocates a newEPPContactCreateCmdwith the contact definition information.EPPContactCreateCmd(java.lang.String aTransId, java.lang.String aId, EPPContactPostalDefinition aPostalContact, java.lang.String aEmail, EPPAuthInfo aAuthInfo)Constructor of EPPContactCreateCmd Allocates a newEPPContactCreateCmdwith the contact definition information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPostalInfo(EPPContactPostalDefinition newPostalInfo)Adds contact postalInfo.java.lang.Objectclone()CloneEPPContactCreateCmd.protected voiddoDecode(org.w3c.dom.Element aElement)Decode the EPPContactCreateCmd attributes from the aElement DOM Element tree.protected org.w3c.dom.ElementdoEncode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of the EPPContactCreateCmd instance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPContactCreateCmdwith this instance.EPPAuthInfogetAuthInfo()Get authorization information.EPPContactDisclosegetDisclose()Get disclose information.java.lang.StringgetEmail()Get email.java.lang.StringgetFax()Get fax number.java.lang.StringgetFaxExt()Get fax number extension.java.lang.StringgetId()Gets the contact id.java.lang.StringgetNamespace()Get the EPP command Namespace associated with EPPContactCreateCmd.java.util.VectorgetPostalInfo()Get postalInfo elements of contact.java.lang.StringgetVoice()Get voice number.java.lang.StringgetVoiceExt()Get voice number extension.booleanhasAuthInfo()Returnstrueif the contact has auth info.booleanhasDisclose()Returnstrueif the contact has disclose flag.booleanhasEmail()Returnstrueif the contact has email.booleanhasFax()Returnstrueif the contact has fax.booleanhasFaxExt()Returnstrueif the contact has fax extension.booleanhasId()Returnstrueif the contact has contact ID.booleanhasPostalContacts()Returnstrueif the contact has postal info.booleanhasVoice()Returnstrueif the contact has voice.booleanhasVoiceExt()Returnstrueif the contact has voice extension.voidsetAuthInfo(EPPAuthInfo newAuthInfo)Set authorization information.voidsetDisclose(EPPContactDisclose newDisclose)Set disclose information.voidsetEmail(java.lang.String newEmail)Set email.voidsetFax(java.lang.String newFax)Set fax number.voidsetFaxExt(java.lang.String newFaxExt)Set fax number extension.voidsetId(java.lang.String aId)Set the contact id.voidsetPostalInfo(java.util.Vector newPostalContacts)Set contact postalInfo.voidsetVoice(java.lang.String newVoice)Set contact voice number.voidsetVoiceExt(java.lang.String newVoiceExt)Set contact voice extension.java.lang.StringtoString()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, getType
-
Methods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasTransId, setExtension, setExtensions, setTransId
-
-
-
-
Constructor Detail
-
EPPContactCreateCmd
public EPPContactCreateCmd()
Default constructor of EPPContactCreateCmd Allocates a newEPPContactCreateCmdwith default attribute values.
-
EPPContactCreateCmd
public EPPContactCreateCmd(java.lang.String aTransId)
Constructor of EPPContactCreateCmd Allocates a newEPPContactCreateCmdwith the contact definition information.- Parameters:
aTransId- command transaction id
-
EPPContactCreateCmd
public EPPContactCreateCmd(java.lang.String aTransId, java.lang.String aId, EPPContactPostalDefinition aPostalContact, java.lang.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 Detail
-
getNamespace
public java.lang.String getNamespace()
Get the EPP command Namespace associated with EPPContactCreateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPContactMapFactory.NS
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPContactCreateCmdwith this instance.- Overrides:
equalsin classEPPCreateCmd- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPContactCreateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPContactCreateCmd - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
toString
public java.lang.String 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
public java.util.Vector getPostalInfo()
Get postalInfo elements of contact.- Returns:
- java.util.Vector
-
setPostalInfo
public void setPostalInfo(java.util.Vector newPostalContacts)
Set contact postalInfo.- Parameters:
newPostalContacts- java.util.Vector
-
addPostalInfo
public void addPostalInfo(EPPContactPostalDefinition newPostalInfo)
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
public EPPAuthInfo getAuthInfo()
Get authorization information.- Returns:
- com.verisign.epp.codec.gen.EPPAuthInfo
-
setAuthInfo
public void setAuthInfo(EPPAuthInfo newAuthInfo)
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
public EPPContactDisclose getDisclose()
Get disclose information.- Returns:
- Disclose information if defined;
nullotherwise;
-
setDisclose
public void setDisclose(EPPContactDisclose newDisclose)
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
public java.lang.String getEmail()
Get email.- Returns:
- email if defined;
nullotherwise.
-
setEmail
public void setEmail(java.lang.String newEmail)
Set email.- Parameters:
newEmail- String
-
hasFax
public boolean hasFax()
Returnstrueif the contact has fax.- Returns:
trueif the contact has faxfalseotherwise
-
getFax
public java.lang.String getFax()
Get fax number.- Returns:
- Fax number if defined;
nullotherwise.
-
setFax
public void setFax(java.lang.String newFax)
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
public java.lang.String getFaxExt()
Get fax number extension.- Returns:
- fax number extension if defined;
nullotherwise.
-
setFaxExt
public void setFaxExt(java.lang.String newFaxExt)
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
public java.lang.String getId()
Gets the contact id.- Returns:
- Contact id if set;
nullotherwise.
-
setId
public void setId(java.lang.String aId)
Set the contact id.- Parameters:
aId- String
-
hasVoice
public boolean hasVoice()
Returnstrueif the contact has voice.- Returns:
trueif the contact has voicefalseotherwise
-
getVoice
public java.lang.String getVoice()
Get voice number.- Returns:
- Voice number if defined;
nullotherwise.
-
setVoice
public void setVoice(java.lang.String newVoice)
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
public java.lang.String getVoiceExt()
Get voice number extension.- Returns:
- Voice number extension if defined;
nullotherwise.
-
setVoiceExt
public void setVoiceExt(java.lang.String newVoiceExt)
Set contact voice extension.- Parameters:
newVoiceExt- voice extension
-
-