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,Serializable,Cloneable
Represents an EPP Host <host:resData> response to a
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: - 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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPHostCreateResp.static final StringXML Element Name ofEPPHostCreateResproot element.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
ConstructorsConstructorDescriptionEPPHostCreateRespdefault constructor.EPPHostCreateResp(EPPTransId aTransId, String aName) EPPHostCreateRespconstructor that will set the result of an individual host.EPPHostCreateResp(EPPTransId aTransId, String aName, Date aCreationDate) EPPHostCreateRespconstructor that takes the required attribute values as parameters. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPHostCreateResp.protected voidDecode theEPPHostCreateRespattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPHostCreateRespinstance.booleanCompare an instance ofEPPHostCreateRespwith this instance.Get creation date.getName()Get host name.Get the EPP command Namespace associated withEPPHostCreateResp.getType()Get the EPP response type associated withEPPHostCreateResp.voidsetCreationDate(Date aCrDate) Set creation date.voidSet host name.toString()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
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPHostCreateResp.- See Also:
-
ELM_NAME
XML Element Name ofEPPHostCreateResproot element.- See Also:
-
-
Constructor Details
-
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
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
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 Details
-
getType
Get the EPP response type associated withEPPHostCreateResp.- Overrides:
getTypein classEPPResponse- Returns:
- EPPHostCreateResp.ELM_NAME
-
getNamespace
Get the EPP command Namespace associated withEPPHostCreateResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPHostMapFactory.NS
-
getCreationDate
Get creation date.- Returns:
- creation date
-
setCreationDate
Set creation date.- Parameters:
aCrDate- creation date
-
doEncode
Encode 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
Decode theEPPHostCreateRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPHostCreateRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
Compare an instance ofEPPHostCreateRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
truewhen equal;falseotherwise.
-
clone
CloneEPPHostCreateResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPHostCreateResp - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPResponse- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getName
Get host name.- Returns:
- String Host Name
-
setName
Set host name.- Parameters:
newName- String
-