public class EPPContactTransferResp extends EPPResponse
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:
getId
and setId
to get
and set the element.
getTrStatus
and setTrStatus
to get and set the
element.
getRequestClient
and setRequestClient
to get
and set the element.
getActionClient
and setActionClient
to get
and set the element.
getRequestDate
and
setRequestDate
to get and set the element.
getActionDate
and setActionDate
to get and set the element.
EPPContactTransferCmd
,
Serialized Formextensions, TRANSFER_CLIENT_APPROVED, TRANSFER_CLIENT_CANCELLED, TRANSFER_CLIENT_REJECTED, TRANSFER_PENDING, TRANSFER_SERVER_APPROVED, TRANSFER_SERVER_CANCELLED
Constructor and Description |
---|
EPPContactTransferResp()
EPPContactTransferResp default constructor. |
EPPContactTransferResp(EPPTransId aTransId,
java.lang.String aId)
EPPContactTransferResp which takes the id of contact. |
EPPContactTransferResp(EPPTransId aTransId,
java.lang.String aId,
java.lang.String aStatus)
EPPContactTransferResp which takes the id of contact. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPContactTransferResp . |
protected void |
doDecode(org.w3c.dom.Element aElement)
Decode the
EPPContactTransferResp 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 the
EPPContactTransferResp instance. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPContactTransferResp with this
instance. |
java.lang.String |
getActionClient()
Gets the identifier of the client that SHOULD respond to the transfer
request.
|
java.util.Date |
getActionDate()
Gets the date and time of a required or completed response.
|
java.lang.String |
getId()
Gets the contact id
|
java.lang.String |
getNamespace()
Gets the EPP command Namespace associated with
EPPContactTransferResp . |
java.lang.String |
getRequestClient()
Gets the identifier of the client that initiated the transfer request.
|
java.util.Date |
getRequestDate()
Gets the date and time that the transfer was requested.
|
java.lang.String |
getTransferStatus()
Get transfer status.
|
java.lang.String |
getType()
Gets the EPP response type associated with
EPPContactTransferResp . |
void |
setActionClient(java.lang.String aActionClient)
Sets the identifier of the client that SHOULD respond to the transfer
request.
|
void |
setActionDate(java.util.Date aActionDate)
Sets the date and time of a required or completed response.
|
void |
setId(java.lang.String aId)
Sets the contact id.
|
void |
setRequestClient(java.lang.String aRequestClient)
Sets the identifier of the client that initiated the transfer request.
|
void |
setRequestDate(java.util.Date aRequestDate)
Sets the date and time that the transfer was requested.
|
void |
setTransferStatus(java.lang.String newTrStatus)
Set transfer status.
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
addExtension, decode, encode, 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
public EPPContactTransferResp()
EPPContactTransferResp
default constructor. Must call
required setter methods before invoking encode
, which
include:setId
setRequestClient
setActionClient
setTransferStatus
setReqeustDate
setActionDate
setTransId
public EPPContactTransferResp(EPPTransId aTransId, java.lang.String aId)
EPPContactTransferResp
which takes the id of contact. All
other required attributes need to be set using the setter methods,
which include:setRequestClient
setActionClient
setTransferStatus
setReqeustDate
setActionDate
aTransId
- Transaction Id associated with response.aId
- Contact idpublic EPPContactTransferResp(EPPTransId aTransId, java.lang.String aId, java.lang.String aStatus)
EPPContactTransferResp
which takes the id of contact. All
other required attributes need to be set using the setter methods,
which include:setRequestClient
setActionClient
setTransferStatus
setReqeustDate
setActionDate
aTransId
- Transaction Id associated with response.aId
- ContactaStatus
- Transfer statuspublic java.lang.String getType()
EPPContactTransferResp
.getType
in class EPPResponse
EPPContactTransferResp.ELM_NAME
public java.lang.String getNamespace()
EPPContactTransferResp
.getNamespace
in interface EPPCodecComponent
getNamespace
in interface EPPMessage
getNamespace
in class EPPResponse
EPPContactMapFactory.NS
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPContactTransferResp
instance.doEncode
in class EPPResponse
aDocument
- DOM Document that is being built. Used as an Element
factory.EPPContactTransferResp
instance.EPPEncodeException
- Unable to encode
EPPContactTransferResp
instance.protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPContactTransferResp
attributes from the
aElement DOM Element tree.doDecode
in class EPPResponse
aElement
- Root DOM Element to decode
EPPContactTransferResp
from.EPPDecodeException
- Unable to decode aElementpublic boolean equals(java.lang.Object aObject)
EPPContactTransferResp
with this
instance.equals
in class EPPResponse
aObject
- Object to compare with.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPContactTransferResp
.clone
in interface EPPCodecComponent
clone
in class EPPResponse
EPPContactTransferResp
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.toString
in class EPPResponse
String
if successful;
ERROR
otherwise.public java.lang.String getId()
null
otherwise.public void setId(java.lang.String aId)
aId
- Contact Idpublic java.lang.String getRequestClient()
String
if defined;
null
otherwise.public void setRequestClient(java.lang.String aRequestClient)
aRequestClient
- The Request Client Id String
public java.lang.String getActionClient()
String
if defined;
null
otherwise.public void setActionClient(java.lang.String aActionClient)
aActionClient
- The Action Client Id String
public java.util.Date getRequestDate()
null
otherwise.public void setRequestDate(java.util.Date aRequestDate)
aRequestDate
- The request date and timepublic java.util.Date getActionDate()
null
otherwise.public void setActionDate(java.util.Date aActionDate)
aActionDate
- The required or complete response data and time.public java.lang.String getTransferStatus()
EPPResponse.TRANSFER
constants.public void setTransferStatus(java.lang.String newTrStatus)
EPPResponse.TRANSFER
constants.newTrStatus
- The transfer status String
(EPPResponse.TRANSFER
)Copyright © VeriSign Inc. All Rights Reserved.