Package com.verisign.epp.codec.contact
Class EPPContactCreateResp
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPResponse
-
- com.verisign.epp.codec.contact.EPPContactCreateResp
-
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,java.io.Serializable,java.lang.Cloneable
public class EPPContactCreateResp extends EPPResponse
Represents a <contact:creData> response to anEPPContactCreateCmd. When a <create> command has been processed successfully, the EPP <resData> element MUST contain a child <contact:creData> element that identifies the contact namespace and the location of the contact schema. The <contact:creData> element contains the following child elements:
-
A <contact:id> element that contains the server-unique identifier for
the contact to be deleted. Use
getIdandsetIdto get and set the element. -
A <domain.crDate> element that contains the date and time of domain
object creation. Use
getCreationDateandsetCreationDateto get and set the element.
- See Also:
EPPResponse, Serialized Form
-
-
Field Summary
-
Fields inherited from class com.verisign.epp.codec.gen.EPPResponse
ELM_EXTENSION, ELM_MESSAGE_QUEUE, ELM_MESSAGE_QUEUE_QDATE, ELM_RESPONSE_DATA, extensions, TRANSFER_CLIENT_APPROVED, TRANSFER_CLIENT_CANCELLED, TRANSFER_CLIENT_REJECTED, TRANSFER_PENDING, TRANSFER_SERVER_APPROVED, TRANSFER_SERVER_CANCELLED
-
-
Constructor Summary
Constructors Constructor Description EPPContactCreateResp()EPPContactCreateRespdefault constructor.EPPContactCreateResp(EPPTransId aTransId, java.lang.String aId, java.util.Date aCreationDate)EPPContactCreateRespconstructor that takes the contact id as an argument.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPContactCreateResp.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPContactCreateRespattributes 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 theEPPContactCreateRespinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPContactCreateRespwith this instance.java.util.DategetCreationDate()Get creation date.java.lang.StringgetId()Gets the contact id to delete.java.lang.StringgetNamespace()Gets the EPP command Namespace associated withEPPContactCreateResp.voidsetCreationDate(java.util.Date newCrDate)Set creation date.voidsetId(java.lang.String aId)Sets the contact id to delete.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.EPPResponse
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getMessageQueue, getMsgQueue, getMsgQueueCount, getMsgQueueDate, getMsgQueueMsg, getQDate, getResult, getResults, getTransId, getType, hasExtension, hasExtensions, hasMessageQueue, hasMsgQueue, hasResultCode, isSuccess, setExtension, setExtensions, setMsgQueue, setResult, setResult, setResult, setResult, setResults, setTransId
-
-
-
-
Constructor Detail
-
EPPContactCreateResp
public EPPContactCreateResp()
EPPContactCreateRespdefault constructor. The id is initialized tonull. The id and creation date must be set before invokingencode.
-
EPPContactCreateResp
public EPPContactCreateResp(EPPTransId aTransId, java.lang.String aId, java.util.Date aCreationDate)
EPPContactCreateRespconstructor that takes the contact id as an argument.- Parameters:
aTransId- Transaction Id associated with command.aId- Contact id to delete.aCreationDate- Creation date
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command Namespace associated withEPPContactCreateResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPContactMapFactory.NS
-
getCreationDate
public java.util.Date getCreationDate()
Get creation date.- Returns:
- java.util.Date
-
setCreationDate
public void setCreationDate(java.util.Date newCrDate)
Set creation date.- Parameters:
newCrDate- java.util.Date
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPContactCreateRespinstance.- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPContactCreateRespinstance. - Throws:
EPPEncodeException- Unable to encodeEPPContactCreateRespinstance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPContactCreateRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPContactCreateRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
getId
public java.lang.String getId()
Gets the contact id to delete.- Returns:
- Contact Id
Stringinstance if defined;nullotherwise.
-
setId
public void setId(java.lang.String aId)
Sets the contact id to delete.- Parameters:
aId- Contact Id
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPContactCreateRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPContactCreateResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPContactCreateResp - 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 classEPPResponse- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
-