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,Serializable,Cloneable
Represents a <contact:creData> response to an
EPPContactCreateCmd. 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:
-
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
ConstructorsConstructorDescriptionEPPContactCreateRespdefault constructor.EPPContactCreateResp(EPPTransId aTransId, String aId, Date aCreationDate) EPPContactCreateRespconstructor that takes the contact id as an argument. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPContactCreateResp.protected voidDecode theEPPContactCreateRespattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPContactCreateRespinstance.booleanCompare an instance ofEPPContactCreateRespwith this instance.Get creation date.getId()Gets the contact id to delete.Gets the EPP command Namespace associated withEPPContactCreateResp.voidsetCreationDate(Date newCrDate) Set creation date.voidSets the contact id to delete.toString()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 Details
-
EPPContactCreateResp
public EPPContactCreateResp()EPPContactCreateRespdefault constructor. The id is initialized tonull. The id and creation date must be set before invokingencode. -
EPPContactCreateResp
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 Details
-
getNamespace
Gets the EPP command Namespace associated withEPPContactCreateResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPContactMapFactory.NS
-
getCreationDate
Get creation date.- Returns:
- java.util.Date
-
setCreationDate
Set creation date.- Parameters:
newCrDate- java.util.Date
-
doEncode
Encode 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
Decode theEPPContactCreateRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPContactCreateRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
getId
Gets the contact id to delete.- Returns:
- Contact Id
Stringinstance if defined;nullotherwise.
-
setId
Sets the contact id to delete.- Parameters:
aId- Contact Id
-
equals
Compare an instance ofEPPContactCreateRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
CloneEPPContactCreateResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPContactCreateResp - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPResponse- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-