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
getNameandsetNameto get and set the element. -
A <host:crDate> element that contains the date and time of host
object. Use
getCreationDateandsetCreationDateto 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()EPPHostCreateRespdefault constructor.EPPHostCreateResp(EPPTransId aTransId, java.lang.String aName)EPPHostCreateRespconstructor that will set the result of an individual host.EPPHostCreateResp(EPPTransId aTransId, java.lang.String aName, java.util.Date aCreationDate)EPPHostCreateRespconstructor that takes the required attribute values as parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPHostCreateResp.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPHostCreateRespattributes from the aElement DOM Element tree.protected org.w3c.dom.ElementdoEncode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPHostCreateRespinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPHostCreateRespwith this instance.java.util.DategetCreationDate()Get creation date.java.lang.StringgetName()Get host name.java.lang.StringgetNamespace()Get the EPP command Namespace associated withEPPHostCreateResp.java.lang.StringgetType()Get the EPP response type associated withEPPHostCreateResp.voidsetCreationDate(java.util.Date newCrDate)Set creation date.voidsetName(java.lang.String newName)Set host name.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
-
EPPHostCreateResp
public EPPHostCreateResp()
EPPHostCreateRespdefault 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)
EPPHostCreateRespconstructor 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)
EPPHostCreateRespconstructor 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:
getTypein classEPPResponse- Returns:
- EPPHostCreateResp.ELM_NAME
-
getNamespace
public java.lang.String getNamespace()
Get the EPP command Namespace associated withEPPHostCreateResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein 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 EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPHostCreateRespinstance.- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPHostCreateRespinstance. - Throws:
EPPEncodeException- Unable to encodeEPPHostCreateRespinstance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPHostCreateRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPHostCreateRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPHostCreateRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPHostCreateResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein 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 XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPResponse- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
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
-
-