Package com.verisign.epp.codec.contact
Class EPPContactTransferResp
java.lang.Object
com.verisign.epp.codec.gen.EPPResponse
com.verisign.epp.codec.contact.EPPContactTransferResp
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents a <contact:trnData> response to
EPPContactTransferCmd. When a <transfer> query command
has been processed successfully, the EPP <resData> element MUST
contain a child <contact:trnData> element that identifies the contact
namespace and the location of the contact schema. The
<contact:trnData> element SHALL contain the following child elements:
-
A <contact:id> element that contains the server-unique identifier for
the queried contact. Use
getIdandsetIdto get and set the element. -
A <contact: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
getTrStatusandsetTrStatusto get and set the element. -
A <contact:reID> element that contains the identifier of the
client that initiated the transfer request. Use
getRequestClientandsetRequestClientto get and set the element. -
A <contact:acID> element that contains the identifier of the client
that SHOULD respond to the transfer request. Use
getActionClientandsetActionClientto get and set the element. -
A <contact:reDate> element that contains the date and time that the
transfer was requested. Use
getRequestDateandsetRequestDateto get and set the element. -
A <contact: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.
- See Also:
-
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
ConstructorsConstructorDescriptionEPPContactTransferRespdefault constructor.EPPContactTransferResp(EPPTransId aTransId, String aId) EPPContactTransferRespwhich takes the id of contact.EPPContactTransferResp(EPPTransId aTransId, String aId, String aStatus) EPPContactTransferRespwhich takes the id of contact. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPContactTransferResp.protected voidDecode theEPPContactTransferRespattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPContactTransferRespinstance.booleanCompare an instance ofEPPContactTransferRespwith this instance.Gets the identifier of the client that SHOULD respond to the transfer request.Gets the date and time of a required or completed response.getId()Gets the contact idGets the EPP command Namespace associated withEPPContactTransferResp.Gets the identifier of the client that initiated the transfer request.Gets the date and time that the transfer was requested.Get transfer status.getType()Gets the EPP response type associated withEPPContactTransferResp.voidsetActionClient(String aActionClient) Sets the identifier of the client that SHOULD respond to the transfer request.voidsetActionDate(Date aActionDate) Sets the date and time of a required or completed response.voidSets the contact id.voidsetRequestClient(String aRequestClient) Sets the identifier of the client that initiated the transfer request.voidsetRequestDate(Date aRequestDate) Sets the date and time that the transfer was requested.voidsetTransferStatus(String newTrStatus) Set transfer status.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
-
Constructor Details
-
EPPContactTransferResp
public EPPContactTransferResp()EPPContactTransferRespdefault constructor. Must call required setter methods before invokingencode, which include:
-
id -
setId -
request client -
setRequestClient -
action client -
setActionClient -
transfer status -
setTransferStatus -
request date -
setReqeustDate -
action date -
setActionDate -
transaction id -
setTransId
-
id -
-
EPPContactTransferResp
EPPContactTransferRespwhich takes the id of contact. 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.aId- Contact id
-
request client -
-
EPPContactTransferResp
EPPContactTransferRespwhich takes the id of contact. 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.aId- ContactaStatus- Transfer status
-
request client -
-
-
Method Details
-
getType
Gets the EPP response type associated withEPPContactTransferResp.- Overrides:
getTypein classEPPResponse- Returns:
EPPContactTransferResp.ELM_NAME
-
getNamespace
Gets the EPP command Namespace associated withEPPContactTransferResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPContactMapFactory.NS
-
doEncode
Encode a DOM Element tree from the attributes of theEPPContactTransferRespinstance.- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPContactTransferRespinstance. - Throws:
EPPEncodeException- Unable to encodeEPPContactTransferRespinstance.
-
doDecode
Decode theEPPContactTransferRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPContactTransferRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
Compare an instance ofEPPContactTransferRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
CloneEPPContactTransferResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPContactTransferResp - 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.
-
getId
Gets the contact id- Returns:
- Contact Id if set;
nullotherwise.
-
setId
Sets the contact id.- Parameters:
aId- Contact Id
-
getRequestClient
Gets the identifier of the client that initiated the transfer request.- Returns:
- The Request Client Id
Stringif defined;nullotherwise.
-
setRequestClient
Sets the identifier of the client that initiated the transfer request.- Parameters:
aRequestClient- The Request Client IdString
-
getActionClient
Gets the identifier of the client that SHOULD respond to the transfer request.- Returns:
- The Request Client Id
Stringif defined;nullotherwise.
-
setActionClient
Sets the identifier of the client that SHOULD respond to the transfer request.- Parameters:
aActionClient- The Action Client IdString
-
getRequestDate
Gets the date and time that the transfer was requested.- Returns:
- The request date and time if defined;
nullotherwise.
-
setRequestDate
Sets the date and time that the transfer was requested.- Parameters:
aRequestDate- The request date and time
-
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
Sets the date and time of a required or completed response.- Parameters:
aActionDate- The required or complete response data and time.
-
getTransferStatus
Get transfer status. This should be one of theEPPResponse.TRANSFERconstants.- Returns:
- String
-
setTransferStatus
Set transfer status. This should be one of theEPPResponse.TRANSFERconstants.- Parameters:
newTrStatus- The transfer status String (EPPResponse.TRANSFER)
-