Package com.verisign.epp.codec.registry
Class EPPRegistryCreateResp
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPResponse
-
- com.verisign.epp.codec.registry.EPPRegistryCreateResp
-
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryCreateResp extends EPPResponse
Represents an EPP Registry <registry:creData> response to aEPPRegistryCreateCmd. When a <crate> command has been processed successfully, the EPP <resData> element MUSt contain a child <registry:creData> element that identifies the registry namespace and the location of the registry schema. The <registry:creData> element contains the following child elements:
-
A <registry:name> element that contains the fully qualified name of
zone object that has been created. Use
getNameandsetNameto get and set the element. -
A <registry.crDate> element that contains the date and time of zone
object creation. Use
getCreateDateandsetCreateDateto get and set the element.
- See Also:
EPPRegistryCreateCmd, 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 EPPRegistryCreateResp()EPPRegistryCreateRespdefault constructor.EPPRegistryCreateResp(EPPTransId aTransId, java.lang.String name)EPPRegistryCreateRespconstructor that takesnamevalues as parameters.EPPRegistryCreateResp(EPPTransId aTransId, java.lang.String name, java.util.Date createDate)EPPRegistryCreateRespconstructor that takes required values as parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRegistryCreateResp.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPRegistryCreateRespattributes from theaElementDOM Element tree.protected org.w3c.dom.ElementdoEncode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryCreateRespinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPRegistryCreateRespwith this instance.java.util.DategetCreateDate()Get the zone object creation date.java.lang.StringgetName()Get the name of the zone object created.java.lang.StringgetNamespace()Gets the EPP command Namespace associated withEPPRegistryCreateResp.java.lang.StringgetType()Gets the EPP command type associated withEPPRegistryCreateResp.voidsetCreateDate(java.util.Date createDate)Set the zone object creation date.voidsetName(java.lang.String name)Set the name of the zone object created.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, hasExtension, hasExtensions, hasMessageQueue, hasMsgQueue, hasResultCode, isSuccess, setExtension, setExtensions, setMsgQueue, setResult, setResult, setResult, setResult, setResults, setTransId
-
-
-
-
Constructor Detail
-
EPPRegistryCreateResp
public EPPRegistryCreateResp()
EPPRegistryCreateRespdefault constructor. Must call required setter methods before encode. the defaults include the following:
-
nameis set tonull -
createDatedate is set tonull
namemust be set before invokingencode. -
-
EPPRegistryCreateResp
public EPPRegistryCreateResp(EPPTransId aTransId, java.lang.String name)
EPPRegistryCreateRespconstructor that takesnamevalues as parameters.
The creation date must be set before invokingencode.- Parameters:
aTransId- transaction Id associated with responsename- name of zone object
-
EPPRegistryCreateResp
public EPPRegistryCreateResp(EPPTransId aTransId, java.lang.String name, java.util.Date createDate)
EPPRegistryCreateRespconstructor that takes required values as parameters.- Parameters:
aTransId- transaction Id associated with responsename- name of zone objectcreateDate- creation date of the zone object
-
-
Method Detail
-
getType
public java.lang.String getType()
Gets the EPP command type associated withEPPRegistryCreateResp.- Overrides:
getTypein classEPPResponse- Returns:
EPPRegistryCreateResp.ELM_NAME
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command Namespace associated withEPPRegistryCreateResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPRegistryMapFactory.NS
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPRegistryCreateRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryCreateResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPRegistryCreateResp - 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.
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPRegistryCreateRespinstance.- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryCreateRespinstance. - Throws:
EPPEncodeException- Unable to encodeEPPRegistryCreateRespinstance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPRegistryCreateRespattributes from theaElementDOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPRegistryCreateRespfrom.- Throws:
EPPDecodeException- Unable to decodeaElement
-
getName
public java.lang.String getName()
Get the name of the zone object created.- Returns:
- Name
Stringof zone object
-
setName
public void setName(java.lang.String name)
Set the name of the zone object created.- Parameters:
name- NameStringof zone object
-
getCreateDate
public java.util.Date getCreateDate()
Get the zone object creation date.- Returns:
- zone object creation date
-
setCreateDate
public void setCreateDate(java.util.Date createDate)
Set the zone object creation date.- Parameters:
createDate- zone object creation date
-
-