Package com.verisign.epp.codec.domain
Class EPPDomainTransferResp
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPResponse
-
- com.verisign.epp.codec.domain.EPPDomainTransferResp
-
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,java.io.Serializable,java.lang.Cloneable
public class EPPDomainTransferResp extends EPPResponse
Represents an EPP Domain <domain:transfer-data> response to anEPPDomainTransferCmd. When a <transfer> query command has been processed successfully, the EPP <resData> element MUST contain a child <domain:trnData> element that identifies the domain namespace and the location of the domain schema. The <domain:trnData> element SHALL contain the following child elements:
- A <domain:name> element that contains the fully qualified domain
name used in the query. Use
getNameandsetNameto get and set the element. - A <domain:reID> element that contains the identifier of the client
that initiated the transfer request. Use
getRequestClientandsetRequestClientto get and set the element. - A <domain:acID> element that contains the identifier of the client
that SHOULD respond to the transfer request. Use
getActionClientandsetActionClientto get and set the element. - A <domain:trStatus> element that contains the state of the most
recent transfer request. Valid values are "PENDING", "APPROVED", "REJECTED",
"AUTO-APPROVED", "AUTO-REJECTED", and "CANCELLED". Use
getStatusandsetStatuswith theEPPDomainTransferResp.STATUS_constants to get and set the element. - A <domain:reDate> element that contains the date and time that the
transfer was requested. Use
getRequestDateandsetRequestDateto get and set the element. - A <domain:acDate> element that contains the date and time of a
required or completed response. For a PENDING request, the value identifies
the date and time by which a response is required before an automated
response action MUST be taken by the server. For all other status types, the
value identifies the date and time when the request was completed. Use
getActionDateandsetActionDateto get and set the element. - An OPTIONAL <domain:exDate> element that contains the end of the
domain's validity period if the <transfer> command caused or causes a
change in the validity period. Use
getExpirationDateandsetExpirationDateto get and set the element.
- See Also:
EPPDomainTransferCmd, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPDomainTransferResp.static java.lang.StringELM_NAMEXML Element Name ofEPPDomainTransferResproot 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
Constructors Constructor Description EPPDomainTransferResp()EPPDomainTransferRespdefault constructor.EPPDomainTransferResp(EPPTransId aTransId, java.lang.String aName)EPPDomainTransferRespwhich takes the name of domain.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPDomainTransferResp.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPDomainTransferRespattributes 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 theEPPDomainTransferRespinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPDomainTransferRespwith this instance.java.lang.StringgetActionClient()Gets the identifier of the client that SHOULD respond to the transfer request.java.util.DategetActionDate()Gets the date and time of a required or completed response.java.util.DategetExpirationDate()Gets the optional attribute that contains the end of the domain's validity period if the transfer command caused or causes a change in the validity period.java.lang.StringgetName()Gets the domain namejava.lang.StringgetNamespace()Gets the EPP command Namespace associated withEPPDomainTransferResp.java.lang.StringgetRequestClient()Gets the identifier of the client that initiated the transfer request.java.util.DategetRequestDate()Gets the date and time that the transfer was requested.java.lang.StringgetTransferStatus()Gets the state of the most recent transfer request.java.lang.StringgetType()Gets the EPP response type associated withEPPDomainTransferResp.voidsetActionClient(java.lang.String aActionClient)Sets the identifier of the client that SHOULD respond to the transfer request.voidsetActionDate(java.util.Date aActionDate)Sets the date and time of a required or completed response.voidsetExpirationDate(java.util.Date aExpirationDate)Sets the optional attribute that contains the end of the domain's validity period if the transfer command caused or causes a change in the validity period.voidsetName(java.lang.String aName)Sets the domain name.voidsetRequestClient(java.lang.String aRequestClient)Sets the identifier of the client that initiated the transfer request.voidsetRequestDate(java.util.Date aRequestDate)Sets the date and time that the transfer was requested.voidsetTransferStatus(java.lang.String aTransferStatus)Sets the state of the most recent transfer request.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
-
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPDomainTransferResp.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML Element Name ofEPPDomainTransferResproot element.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPDomainTransferResp
public EPPDomainTransferResp()
EPPDomainTransferRespdefault constructor. Must call required setter methods before invokingencode, which include:
- name -
setName - request client -
setRequestClient - action client -
setActionClient - transfer status -
setTransferStatus - request date -
setReqeustDate - action date -
setActionDate - transaction id -
setTransId
- name -
-
EPPDomainTransferResp
public EPPDomainTransferResp(EPPTransId aTransId, java.lang.String aName)
EPPDomainTransferRespwhich takes the name of domain. All other required attributes need to be set using the setter methods, which include:
- request client -
setRequestClient - action client -
setActionClient - transfer status -
setTransferStatus - request date -
setReqeustDate - action date -
setActionDate
- Parameters:
aTransId- Transaction Id associated with response.aName- Domain name
- request client -
-
-
Method Detail
-
getType
public java.lang.String getType()
Gets the EPP response type associated withEPPDomainTransferResp.- Overrides:
getTypein classEPPResponse- Returns:
EPPDomainTransferResp.ELM_NAME
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command Namespace associated withEPPDomainTransferResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPDomainMapFactory.NS
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPDomainTransferRespinstance.- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPDomainTransferRespinstance. - Throws:
EPPEncodeException- Unable to encodeEPPDomainTransferRespinstance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPDomainTransferRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPDomainTransferRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPDomainTransferRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPDomainTransferResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPDomainTransferResp - 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()
Gets the domain name- Returns:
- Domain Name if set;
nullotherwise.
-
setName
public void setName(java.lang.String aName)
Sets the domain name.- Parameters:
aName- Domain Name
-
getRequestClient
public java.lang.String getRequestClient()
Gets the identifier of the client that initiated the transfer request.- Returns:
- The Request Client Id
Stringif defined;nullotherwise.
-
setRequestClient
public void setRequestClient(java.lang.String aRequestClient)
Sets the identifier of the client that initiated the transfer request.- Parameters:
aRequestClient- The Request Client IdString
-
getActionClient
public java.lang.String getActionClient()
Gets the identifier of the client that SHOULD respond to the transfer request.- Returns:
- The Request Client Id
Stringif defined;nullotherwise.
-
setActionClient
public void setActionClient(java.lang.String aActionClient)
Sets the identifier of the client that SHOULD respond to the transfer request.- Parameters:
aActionClient- The Action Client IdString
-
getTransferStatus
public java.lang.String getTransferStatus()
Gets the state of the most recent transfer request. This should be one of theEPPResponse.TRANSFERconstants.- Returns:
- The transfer status
Stringif defined;nullotherwise.
-
setTransferStatus
public void setTransferStatus(java.lang.String aTransferStatus)
Sets the state of the most recent transfer request. This should be one of theEPPResponse.TRANSFERconstants.- Parameters:
aTransferStatus- The transfer status String (EPPResponse.TRANSFER)
-
getRequestDate
public java.util.Date getRequestDate()
Gets the date and time that the transfer was requested.- Returns:
- The request date and time if defined;
nullotherwise.
-
setRequestDate
public void setRequestDate(java.util.Date aRequestDate)
Sets the date and time that the transfer was requested.- Parameters:
aRequestDate- The request date and time
-
getActionDate
public java.util.Date getActionDate()
Gets the date and time of a required or completed response.- Returns:
- The required or complete response data and time if defined;
nullotherwise.
-
setActionDate
public void setActionDate(java.util.Date aActionDate)
Sets the date and time of a required or completed response.- Parameters:
aActionDate- The required or complete response data and time.
-
getExpirationDate
public java.util.Date getExpirationDate()
Gets the optional attribute that contains the end of the domain's validity period if the transfer command caused or causes a change in the validity period.- Returns:
- Transfer expiration data and time if defined;
nullotherwise.
-
setExpirationDate
public void setExpirationDate(java.util.Date aExpirationDate)
Sets the optional attribute that contains the end of the domain's validity period if the transfer command caused or causes a change in the validity period.- Parameters:
aExpirationDate- Transfer expiration data and time.
-
-