Package com.verisign.epp.codec.defReg
Class EPPDefRegRenewResp
java.lang.Object
com.verisign.epp.codec.gen.EPPResponse
com.verisign.epp.codec.defReg.EPPDefRegRenewResp
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP DefReg
<defReg:renData> response to a
EPPDefRegRenewCmd. When a <renew> command has been processed
successfully, the EPP <resData> element MUST contain a child
<defReg:renData> element that identifies the defReg namespace.
The <defReg:renData> element contains
the following child elements:
-
A
<defReg:roid>element that contains repository object identifier assigned to the defReg object when the object was created. -
An OPTIONAL
<defReg:exDate>element that contains the date and time identifying the end of the defReg object's validity period.
- 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
ConstructorsConstructorDescriptionEPPDefRegRenewRespdefault constructor.EPPDefRegRenewResp(EPPTransId aTransId, String aRoid) EPPDefRegRenewRespconstructor that takes the required attribute values as parameters.EPPDefRegRenewResp(EPPTransId aTransId, String aRoid, Date aExpirationDate) EPPDefRegRenewRespconstructor that takes the required attribute values as parameters. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPDefRegRenewResp.protected voidDecode theEPPDefRegRenewRespattributes from theaElementDOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPDefRegRenewRespinstance.booleanCompare an instance ofEPPDefRegRenewRespwith this instance.Gets the expiration date and time of the defReg.Gets the EPP command Namespace associated withEPPDefRegRenewResp.getRoid()Gets the defReg roidgetType()Gets the EPP command type associated withEPPDefRegRenewResp.voidsetExpirationDate(Date aExpirationDate) Sets the expiration date and time of the defReg.voidSets the defReg roid.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, hasExtension, hasExtensions, hasMessageQueue, hasMsgQueue, hasResultCode, isSuccess, setExtension, setExtensions, setMsgQueue, setResult, setResult, setResult, setResult, setResults, setTransId
-
Constructor Details
-
EPPDefRegRenewResp
public EPPDefRegRenewResp()EPPDefRegRenewRespdefault constructor. Must call required setter methods before encode. the defaults include the following:
-
roid is set to
null -
expiration date is set to
null
The roid must be set before invokingencode. -
roid is set to
-
EPPDefRegRenewResp
EPPDefRegRenewRespconstructor that takes the required attribute values as parameters.- Parameters:
aTransId- Transaction Id associated with response.aRoid- DefReg roid
-
EPPDefRegRenewResp
EPPDefRegRenewRespconstructor that takes the required attribute values as parameters.- Parameters:
aTransId- transaction Id associated with response.aRoid- defReg roidaExpirationDate- expiration date of the defReg
-
-
Method Details
-
getType
Gets the EPP command type associated withEPPDefRegRenewResp.- Overrides:
getTypein classEPPResponse- Returns:
- EPPDefRegRenewResp.ELM_NAME
-
getNamespace
Gets the EPP command Namespace associated withEPPDefRegRenewResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPDefRegMapFactory.NS
-
equals
Compare an instance ofEPPDefRegRenewRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
CloneEPPDefRegRenewResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPDefRegRenewResp - 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.
-
getRoid
Gets the defReg roid- Returns:
- DefReg Roid
Stringinstance if defined;nullotherwise.
-
setRoid
Sets the defReg roid.- Parameters:
aRoid- DefReg Roid
-
getExpirationDate
Gets the expiration date and time of the defReg.- Returns:
- Expiration date and time of the defReg if defined;
nullotherwise.
-
setExpirationDate
Sets the expiration date and time of the defReg.- Parameters:
aExpirationDate- Expiration date and time of the defReg.
-
doEncode
Encode a DOM Element tree from the attributes of theEPPDefRegRenewRespinstance.- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPDefRegRenewRespinstance. - Throws:
EPPEncodeException- Unable to encodeEPPDefRegRenewRespinstance.
-
doDecode
Decode theEPPDefRegRenewRespattributes from theaElementDOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPDefRegRenewRespfrom.- Throws:
EPPDecodeException- Unable to decodeaElement
-