Class EPPRegistryCreateResp
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPResponse
-
- com.verisign.epp.codec.registry.v02.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
getName
andsetName
to get and set the element. - A <registry.crDate> element that contains the date and time of zone
object creation. Use
getCreateDate
andsetCreateDate
to get and set the element.
- See Also:
EPPRegistryCreateCmd
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELM_LOCALNAME
XML local name forEPPRegistryCreateResp
.static java.lang.String
ELM_NAME
XML root tag forEPPRegistryCreateResp
.-
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()
EPPRegistryCreateResp
default constructor.EPPRegistryCreateResp(EPPTransId aTransId, EPPRegistryZoneName aName)
EPPRegistryCreateResp
constructor that takes thename
value as a parameter.EPPRegistryCreateResp(EPPTransId aTransId, EPPRegistryZoneName aName, java.util.Date aCreateDate)
EPPRegistryCreateResp
constructor that takes required values as parameters.EPPRegistryCreateResp(EPPTransId aTransId, java.lang.String aName)
EPPRegistryCreateResp
constructor that takes the aLabelname
value as a parameter.EPPRegistryCreateResp(EPPTransId aTransId, java.lang.String aName, java.util.Date aCreateDate)
EPPRegistryCreateResp
constructor that takes required values as parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
CloneEPPRegistryCreateResp
.protected void
doDecode(org.w3c.dom.Element aElement)
Decode theEPPRegistryCreateResp
attributes from theaElement
DOM Element tree.protected org.w3c.dom.Element
doEncode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of theEPPRegistryCreateResp
instance.boolean
equals(java.lang.Object aObject)
Compare an instance ofEPPRegistryCreateResp
with this instance.java.util.Date
getCreateDate()
Get the zone object creation date.EPPRegistryZoneName
getName()
Gets the zone name.java.lang.String
getNamespace()
Gets the EPP command Namespace associated withEPPRegistryCreateResp
.java.lang.String
getType()
Gets the EPP command type associated withEPPRegistryCreateResp
.void
setCreateDate(java.util.Date createDate)
Set the zone object creation date.void
setName(EPPRegistryZoneName aName)
Sets the zone namevoid
setName(java.lang.String aName)
Sets the aLabel zone namejava.lang.String
toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation 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
-
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPRegistryCreateResp
.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPRegistryCreateResp
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryCreateResp
public EPPRegistryCreateResp()
EPPRegistryCreateResp
default constructor. Must call required setter methods before encode. the defaults include the following:
name
is set tonull
createDate
date is set tonull
name
must be set before invokingencode
.
-
EPPRegistryCreateResp
public EPPRegistryCreateResp(EPPTransId aTransId, java.lang.String aName)
EPPRegistryCreateResp
constructor that takes the aLabelname
value as a parameter. The creation date must be set before invoking#encode(Document)
.- Parameters:
aTransId
- transaction Id associated with responseaName
- aLabel name of zone object
-
EPPRegistryCreateResp
public EPPRegistryCreateResp(EPPTransId aTransId, EPPRegistryZoneName aName)
EPPRegistryCreateResp
constructor that takes thename
value as a parameter. The creation date must be set before invoking#encode(Document)
.- Parameters:
aTransId
- transaction Id associated with responseaName
- name of zone object
-
EPPRegistryCreateResp
public EPPRegistryCreateResp(EPPTransId aTransId, java.lang.String aName, java.util.Date aCreateDate)
EPPRegistryCreateResp
constructor that takes required values as parameters.- Parameters:
aTransId
- transaction Id associated with responseaName
- aLabel name of zone objectaCreateDate
- creation date of the zone object
-
EPPRegistryCreateResp
public EPPRegistryCreateResp(EPPTransId aTransId, EPPRegistryZoneName aName, java.util.Date aCreateDate)
EPPRegistryCreateResp
constructor that takes required values as parameters.- Parameters:
aTransId
- transaction Id associated with responseaName
- name of zone objectaCreateDate
- creation date of the zone object
-
-
Method Detail
-
getType
public java.lang.String getType()
Gets the EPP command type associated withEPPRegistryCreateResp
.- Overrides:
getType
in classEPPResponse
- Returns:
EPPRegistryCreateResp.ELM_NAME
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command Namespace associated withEPPRegistryCreateResp
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Specified by:
getNamespace
in interfaceEPPMessage
- Overrides:
getNamespace
in classEPPResponse
- Returns:
EPPRegistryMapFactory.NS
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPRegistryCreateResp
with this instance.- Overrides:
equals
in classEPPResponse
- Parameters:
aObject
- Object to compare with.- Returns:
true
if this object is the same as the aObject argument;false
otherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPRegistryCreateResp
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in 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 XMLString
representation of the concreteEPPCodecComponent
.- Overrides:
toString
in classEPPResponse
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Encode a DOM Element tree from the attributes of theEPPRegistryCreateResp
instance.- Overrides:
doEncode
in classEPPResponse
- Parameters:
aDocument
- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryCreateResp
instance. - Throws:
EPPEncodeException
- Unable to encodeEPPRegistryCreateResp
instance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode theEPPRegistryCreateResp
attributes from theaElement
DOM Element tree.- Overrides:
doDecode
in classEPPResponse
- Parameters:
aElement
- Root DOM Element to decodeEPPRegistryCreateResp
from.- Throws:
EPPDecodeException
- Unable to decodeaElement
-
getName
public EPPRegistryZoneName getName()
Gets the zone name.- Returns:
- Zone name if set;
null
otherwise.
-
setName
public void setName(EPPRegistryZoneName aName)
Sets the zone name- Parameters:
aName
- Zone name
-
setName
public void setName(java.lang.String aName)
Sets the aLabel zone name- Parameters:
aName
- aLabel zone name
-
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
-
-