Package com.verisign.epp.codec.nameWatch
Class EPPNameWatchTransferResp
java.lang.Object
com.verisign.epp.codec.gen.EPPResponse
com.verisign.epp.codec.nameWatch.EPPNameWatchTransferResp
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP NameWatch <nameWatch:transfer-data> response to an
EPPNameWatchTransferCmd. When a <transfer> query
command has been processed successfully, the EPP <resData> element
MUST contain a child <nameWatch:trnData> element that identifies the
nameWatch namespace and the location of the nameWatch schema. The
<nameWatch:trnData> element SHALL contain the following child
elements: -
A <nameWatch:roid> element that contains the fully qualified nameWatch
roid used in the query. Use
getRoidandsetRoidto get and set the element. -
A <nameWatch: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 theEPPNameWatchTransferResp.STATUS_constants to get and set the element. -
A <nameWatch:reID> element that contains the identifier of the
client that initiated the transfer request. Use
getRequestClientandsetRequestClientto get and set the element. andsetActionClientto get and set the element. -
A <nameWatch:reDate> element that contains the date and time that the
transfer was requested. Use
getRequestDateandsetRequestDateto get and set the element. -
A <nameWatch:acID> element that contains the identifier of the client
that SHOULD respond to the transfer request. Use
getActionClient -
A <nameWatch: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 <nameWatch:exDate> element that contains the end of
the nameWatch'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:
-
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
ConstructorsConstructorDescriptionEPPNameWatchTransferRespdefault constructor.EPPNameWatchTransferResp(EPPTransId aTransId, String aRoid) EPPNameWatchTransferRespwhich takes the name of nameWatch.EPPNameWatchTransferResp(EPPTransId aTransId, String aRoid, String aTransferStatus, String aRequestClient, Date aRequestDate, String aActionClient, Date aActionDate) EPPNameWatchTransferRespwhich takes the name of nameWatch. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPNameWatchTransferResp.protected voidDecode theEPPNameWatchTransferRespattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPNameWatchTransferRespinstance.booleanCompare an instance ofEPPNameWatchTransferRespwith 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.Gets the optional attribute that contains the end of the nameWatch's validity period if the transfer command caused or causes a change in the validity period.Gets the EPP command Namespace associated withEPPNameWatchTransferResp.Gets the identifier of the client that initiated the transfer request.Gets the date and time that the transfer was requested.getRoid()Gets the nameWatch roidGets the state of the most recent transfer request.getType()Gets the EPP response type associated withEPPNameWatchTransferResp.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.voidsetExpirationDate(Date aExpirationDate) Sets the optional attribute that contains the end of the nameWatch's validity period if the transfer command caused or causes a change in the validity period.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.voidSets the nameWatch roid.voidsetTransferStatus(String aTransferStatus) Sets the state of the most recent transfer request.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
-
EPPNameWatchTransferResp
public EPPNameWatchTransferResp()EPPNameWatchTransferRespdefault constructor. Must call required setter methods before invokingencode, which include:
-
transaction id -
setTransId -
roid -
setRoid -
transfer status -
setTransferStatus -
request client -
setRequestClient -
request date -
setReqeustDate -
action client -
setActionClient -
action date -
setActionDate
-
transaction id -
-
EPPNameWatchTransferResp
EPPNameWatchTransferRespwhich takes the name of nameWatch. All other required attributes need to be set using the setter methods, which include:
-
transfer status -
setTransferStatus -
request client -
setRequestClient -
request date -
setReqeustDate -
action client -
setActionClient -
action date -
setActionDate
- Parameters:
aTransId- Transaction Id associated with response.aRoid- NameWatch roid
-
transfer status -
-
EPPNameWatchTransferResp
public EPPNameWatchTransferResp(EPPTransId aTransId, String aRoid, String aTransferStatus, String aRequestClient, Date aRequestDate, String aActionClient, Date aActionDate) EPPNameWatchTransferRespwhich takes the name of nameWatch.- Parameters:
aTransId- DOCUMENT ME!aRoid- DOCUMENT ME!aTransferStatus- DOCUMENT ME!aRequestClient- DOCUMENT ME!aRequestDate- DOCUMENT ME!aActionClient- DOCUMENT ME!aActionDate- DOCUMENT ME!
-
-
Method Details
-
getType
Gets the EPP response type associated withEPPNameWatchTransferResp.- Overrides:
getTypein classEPPResponse- Returns:
EPPNameWatchTransferResp.ELM_NAME
-
getNamespace
Gets the EPP command Namespace associated withEPPNameWatchTransferResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPNameWatchMapFactory.NS
-
doEncode
Encode a DOM Element tree from the attributes of theEPPNameWatchTransferRespinstance.- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPNameWatchTransferRespinstance. - Throws:
EPPEncodeException- Unable to encodeEPPNameWatchTransferRespinstance.
-
doDecode
Decode theEPPNameWatchTransferRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPNameWatchTransferRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
Compare an instance ofEPPNameWatchTransferRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
CloneEPPNameWatchTransferResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPNameWatchTransferResp - 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.
-
getRoid
Gets the nameWatch roid- Returns:
- NameWatch Roid if set;
nullotherwise.
-
setRoid
Sets the nameWatch roid.- Parameters:
aRoid- NameWatch Roid
-
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
-
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
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
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.
-
getExpirationDate
Gets the optional attribute that contains the end of the nameWatch'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
Sets the optional attribute that contains the end of the nameWatch's validity period if the transfer command caused or causes a change in the validity period.- Parameters:
aExpirationDate- Transfer expiration data and time.
-