Package com.verisign.epp.codec.host
Class EPPHostCreateResp
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPResponse
-
- com.verisign.epp.codec.host.EPPHostCreateResp
-
- All Implemented Interfaces:
EPPCodecComponent
,EPPMessage
,java.io.Serializable
,java.lang.Cloneable
public class EPPHostCreateResp extends EPPResponse
Represents an EPP Host <host:resData> response to aEPPHostCreateCmd
. 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:
-
A <host:name> element that contains the fully qualified name of the
host object. Use
getName
andsetName
to get and set the element. -
A <host:crDate> element that contains the date and time of host
object. Use
getCreationDate
andsetCreationDate
to get and set the element.
- See Also:
EPPHostCreateCmd
, 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 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
CloneEPPHostCreateResp
.protected void
doDecode(org.w3c.dom.Element aElement)
Decode theEPPHostCreateResp
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 theEPPHostCreateResp
instance.boolean
equals(java.lang.Object aObject)
Compare an instance ofEPPHostCreateResp
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 withEPPHostCreateResp
.java.lang.String
getType()
Get the EPP response type associated withEPPHostCreateResp
.void
setCreationDate(java.util.Date newCrDate)
Set creation date.void
setName(java.lang.String newName)
Set host name.java.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
-
-
-
-
Constructor Detail
-
EPPHostCreateResp
public EPPHostCreateResp()
EPPHostCreateResp
default constructor.
It will set results attribute to an emptyVector
. The name is initialized to null. The creation date must be set before invokingencode
.
-
EPPHostCreateResp
public EPPHostCreateResp(EPPTransId aTransId, java.lang.String aName)
EPPHostCreateResp
constructor that will set the result of an individual host.
The creation date must be set before invokingencode
.- Parameters:
aTransId
- Transaction Id associated with response.aName
- Host name
-
EPPHostCreateResp
public EPPHostCreateResp(EPPTransId aTransId, java.lang.String aName, java.util.Date aCreationDate)
EPPHostCreateResp
constructor that takes the required attribute values as parameters.- Parameters:
aTransId
- Transaction Id associated with response.aName
- Host nameaCreationDate
- Creation date of the host
-
-
Method Detail
-
getType
public java.lang.String getType()
Get the EPP response type associated withEPPHostCreateResp
.- Overrides:
getType
in classEPPResponse
- Returns:
- EPPHostCreateResp.ELM_NAME
-
getNamespace
public java.lang.String getNamespace()
Get the EPP command Namespace associated withEPPHostCreateResp
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Specified by:
getNamespace
in interfaceEPPMessage
- Overrides:
getNamespace
in classEPPResponse
- Returns:
EPPHostMapFactory.NS
-
getCreationDate
public java.util.Date getCreationDate()
Get creation date.- Returns:
- creation date
-
setCreationDate
public void setCreationDate(java.util.Date newCrDate)
Set creation date.- Parameters:
newCrDate
- creation date
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Encode a DOM Element tree from the attributes of theEPPHostCreateResp
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
EPPHostCreateResp
instance. - Throws:
EPPEncodeException
- Unable to encodeEPPHostCreateResp
instance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode theEPPHostCreateResp
attributes from the aElement DOM Element tree.- Overrides:
doDecode
in classEPPResponse
- Parameters:
aElement
- Root DOM Element to decodeEPPHostCreateResp
from.- Throws:
EPPDecodeException
- Unable to decode aElement
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPHostCreateResp
with this instance.- Overrides:
equals
in classEPPResponse
- Parameters:
aObject
- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPHostCreateResp
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in classEPPResponse
- Returns:
- clone of
EPPHostCreateResp
- 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.
-
getName
public java.lang.String getName()
Get host name.- Returns:
- String Host Name
-
setName
public void setName(java.lang.String newName)
Set host name.- Parameters:
newName
- String
-
-