public class EPPHostCreateResp extends EPPResponse
EPPHostCreateCmd
. When a <create> command has been
processed successfully, the EPP <resData> element MUST contain a
child <host:creData> element that identifies the host namespace and
the location of the host schema. The <host:creData> element SHALL
contain the following child elements: getName
and setName
to get
and set the element.
getCreationDate
and setCreationDate
to get and set the element.
EPPHostCreateCmd
,
Serialized Formextensions, TRANSFER_CLIENT_APPROVED, TRANSFER_CLIENT_CANCELLED, TRANSFER_CLIENT_REJECTED, TRANSFER_PENDING, TRANSFER_SERVER_APPROVED, TRANSFER_SERVER_CANCELLED
Constructor and Description |
---|
EPPHostCreateResp()
EPPHostCreateResp default constructor. |
EPPHostCreateResp(EPPTransId aTransId,
java.lang.String aName)
EPPHostCreateResp constructor that will set the result of
an individual host. |
EPPHostCreateResp(EPPTransId aTransId,
java.lang.String aName,
java.util.Date aCreationDate)
EPPHostCreateResp constructor that takes the required
attribute values as parameters. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPHostCreateResp . |
protected void |
doDecode(org.w3c.dom.Element aElement)
Decode the
EPPHostCreateResp attributes from the aElement
DOM Element tree. |
protected org.w3c.dom.Element |
doEncode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the
EPPHostCreateResp instance. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPHostCreateResp with this
instance. |
java.util.Date |
getCreationDate()
Get creation date.
|
java.lang.String |
getName()
Get host name.
|
java.lang.String |
getNamespace()
Get the EPP command Namespace associated with
EPPHostCreateResp . |
java.lang.String |
getType()
Get the EPP response type associated with
EPPHostCreateResp . |
void |
setCreationDate(java.util.Date newCrDate)
Set creation date.
|
void |
setName(java.lang.String newName)
Set host name.
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
addExtension, decode, encode, 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
public EPPHostCreateResp()
EPPHostCreateResp
default constructor. Vector
. The name
is initialized to null. The creation date must be set before invoking
encode
.public EPPHostCreateResp(EPPTransId aTransId, java.lang.String aName)
EPPHostCreateResp
constructor that will set the result of
an individual host. encode
.aTransId
- Transaction Id associated with response.aName
- Host namepublic EPPHostCreateResp(EPPTransId aTransId, java.lang.String aName, java.util.Date aCreationDate)
EPPHostCreateResp
constructor that takes the required
attribute values as parameters.aTransId
- Transaction Id associated with response.aName
- Host nameaCreationDate
- Creation date of the hostpublic java.lang.String getType()
EPPHostCreateResp
.getType
in class EPPResponse
public java.lang.String getNamespace()
EPPHostCreateResp
.getNamespace
in interface EPPCodecComponent
getNamespace
in interface EPPMessage
getNamespace
in class EPPResponse
EPPHostMapFactory.NS
public java.util.Date getCreationDate()
public void setCreationDate(java.util.Date newCrDate)
newCrDate
- creation dateprotected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPHostCreateResp
instance.doEncode
in class EPPResponse
aDocument
- DOM Document that is being built. Used as an Element
factory.EPPHostCreateResp
instance.EPPEncodeException
- Unable to encode
EPPHostCreateResp
instance.protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPHostCreateResp
attributes from the aElement
DOM Element tree.doDecode
in class EPPResponse
aElement
- Root DOM Element to decode
EPPHostCreateResp
from.EPPDecodeException
- Unable to decode aElementpublic boolean equals(java.lang.Object aObject)
EPPHostCreateResp
with this
instance.equals
in class EPPResponse
aObject
- Object to compare with.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPHostCreateResp
.clone
in interface EPPCodecComponent
clone
in class EPPResponse
EPPHostCreateResp
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.toString
in class EPPResponse
String
if successful;
ERROR
otherwise.public java.lang.String getName()
public void setName(java.lang.String newName)
newName
- StringCopyright © VeriSign Inc. All Rights Reserved.