Package com.verisign.epp.codec.defReg
Class EPPDefRegCreateResp
java.lang.Object
com.verisign.epp.codec.gen.EPPResponse
com.verisign.epp.codec.defReg.EPPDefRegCreateResp
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPPDefReg
<defReg:creData> response to a
EPPDefRegCreateCmd. When a <create> command has been
processed successfully, the EPP <resData> element MUST contain a
child <defReg:creData> element that identifies the defReg namespace.
The <defReg:creData> element
contains the following child elements:-
A
<defReg.roid>element that contains the repository object identifier assigned to the defReg object when the object was created. -
A
<defReg:name>element that contains the name of the defReg object. -
A
<defReg.crDate>element that contains the date and time of the defReg object creation. -
An OPTIONAL
<defReg:exDate>element that contains the date and time identifying the end of the defReg's registration 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
ConstructorsConstructorDescriptionEPPDefRegCreateRespdefault constructor.EPPDefRegCreateResp(EPPTransId aTransId, EPPDefRegName aName, String aRoid) EPPDefRegCreateRespconstructor that takes the required attribute values as parameters.EPPDefRegCreateResp(EPPTransId aTransId, EPPDefRegName aName, String aRoid, Date aCreationDate) EPPDefRegCreateRespconstructor that takes the required attribute values as parameters.EPPDefRegCreateResp(EPPTransId aTransId, EPPDefRegName aName, String aRoid, Date aCreationDate, Date aExpirationDate) EPPDefRegCreateRespconstructor that takes the required attribute values as parameters. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPDefRegCreateResp.protected voidDecode theEPPDefRegCreateRespattributes from theaElementDOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPDefRegCreateRespinstance.booleanCompare an instance ofEPPDefRegCreateRespwith this instance.Get creation date.Gets the expiration date and time of the defReg.getName()Gets the defReg nameGets the EPP command Namespace associated withEPPDefRegCreateResp.getRoid()Gets the defReg roidgetType()Gets the EPP command type associated withEPPDefRegCreateResp.voidsetCreationDate(Date newCrDate) Set creation date.voidsetExpirationDate(Date aExpirationDate) Sets the expiration date and time of the defReg.voidsetName(EPPDefRegName aName) Sets the defReg name.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
-
EPPDefRegCreateResp
public EPPDefRegCreateResp()EPPDefRegCreateRespdefault constructor. Must call required setter methods before encode. the defaults include the following:
-
name is set to
null -
roid is set to
null -
expiration date is set to
null
The name must be set before invokingencode. The roid must be set before invokingencode. -
name is set to
-
EPPDefRegCreateResp
EPPDefRegCreateRespconstructor that takes the required attribute values as parameters.
The creation date must be set before invokingencode.- Parameters:
aTransId- Transaction Id associated with response.aName- DefReg nameaRoid- DefReg roid
-
EPPDefRegCreateResp
public EPPDefRegCreateResp(EPPTransId aTransId, EPPDefRegName aName, String aRoid, Date aCreationDate) EPPDefRegCreateRespconstructor that takes the required attribute values as parameters.- Parameters:
aTransId- transaction Id associated with response.aName- defReg nameaRoid- defReg roidaCreationDate- creation date of the defReg
-
EPPDefRegCreateResp
public EPPDefRegCreateResp(EPPTransId aTransId, EPPDefRegName aName, String aRoid, Date aCreationDate, Date aExpirationDate) EPPDefRegCreateRespconstructor that takes the required attribute values as parameters.- Parameters:
aTransId- transaction Id associated with response.aName- defReg nameaRoid- defReg roidaCreationDate- creation date of the defRegaExpirationDate- expiration date of the defReg
-
-
Method Details
-
getType
Gets the EPP command type associated withEPPDefRegCreateResp.- Overrides:
getTypein classEPPResponse- Returns:
- EPPDefRegCreateResp.ELM_NAME
-
getNamespace
Gets the EPP command Namespace associated withEPPDefRegCreateResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPDefRegMapFactory.NS
-
equals
Compare an instance ofEPPDefRegCreateRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
CloneEPPDefRegCreateResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPDefRegCreateResp - 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.
-
getName
Gets the defReg name- Returns:
- DefReg Name
Stringinstance if defined;nullotherwise.
-
setName
Sets the defReg name.- Parameters:
aName- DefReg Name
-
getRoid
Gets the defReg roid- Returns:
- DefReg roid
Stringinstance if defined;nullotherwise.
-
setRoid
Sets the defReg roid.- Parameters:
aRoid- DefReg Roid
-
getCreationDate
Get creation date.- Returns:
- Creation date and time of the defReg
-
setCreationDate
Set creation date.- Parameters:
newCrDate- Creation date and time of the defReg
-
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 theEPPDefRegCreateRespinstance.- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPDefRegCreateRespinstance. - Throws:
EPPEncodeException- Unable to encodeEPPDefRegCreateRespinstance.
-
doDecode
Decode theEPPDefRegCreateRespattributes from theaElementDOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPDefRegCreateRespfrom.- Throws:
EPPDecodeException- Unable to decodeaElement
-