Package com.verisign.epp.codec.nameWatch
Class EPPNameWatchTransferCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPTransferCmd
com.verisign.epp.codec.nameWatch.EPPNameWatchTransferCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP NameWatch <transfer> command. The EPP
<transfer> command provides a query operation that allows a client to
determine real-time status of pending and completed transfer requests. In
addition to the standard EPP command elements, the <transfer> command
MUST contain an
Transfer of a nameWatch object MUST implicitly transfer all host objects that are subordinate to the nameWatch object. For example, if nameWatch object "example.com" is transferred and host object "ns1.example.com" exists, the host object MUST be transferred as part of the "example.com" transfer process. Host objects that are subject to transfer when transferring a nameWatch object are listed in the response to an EPP <info> command performed on the nameWatch object.
op attribute with value query,
and a <nameWatch:transfer> element that identifies the nameWatch
namespace and the location of the nameWatch schema. The
<nameWatch:transfer> element SHALL contain the following child
elements: -
A <nameWatch:name> element that contains the fully qualified nameWatch
name of the object for which a transfer request is to be created, approved,
rejected, or cancelled. Use
getNameandsetNameto get and set the element. -
An OPTIONAL <nameWatch:period> element that contains the initial
registration period of the nameWatch object. Use
getPeriodandsetPeriodto get and set the element. If returnnull, period has not been specified yet. -
An "op" attribute that identifies the transfer operation to be performed.
Valid values, definitions, and authorizations for all attribute values are
defined in [EPP]. Use
getOpandsetOpto get and set the element. One of theEPPCommand.OP_constants need to be specified. -
A <nameWatch:authInfo> element that contains authorization information
associated with the nameWatch object or authorization information
associated with the nameWatch object's registrant or associated contacts.
This element is REQUIRED only when a transfer is requested, and it SHALL be
ignored if used otherwise. Use
getAuthInfoandsetAuthInfoto get and set the element.
Transfer of a nameWatch object MUST implicitly transfer all host objects that are subordinate to the nameWatch object. For example, if nameWatch object "example.com" is transferred and host object "ns1.example.com" exists, the host object MUST be transferred as part of the "example.com" transfer process. Host objects that are subject to transfer when transferring a nameWatch object are listed in the response to an EPP <info> command performed on the nameWatch object.
EPPNameWatchTransferResp is the concrete
EPPReponse associated with
EPPNameWatchTransferCmd. - See Also:
-
Field Summary
Fields inherited from class com.verisign.epp.codec.gen.EPPTransferCmd
opFields inherited from class com.verisign.epp.codec.gen.EPPCommand
extensions, OP_APPROVE, OP_CANCEL, OP_QUERY, OP_REJECT, OP_REQUEST, transId, TYPE_CHECK, TYPE_CREATE, TYPE_DELETE, TYPE_INFO, TYPE_LOGIN, TYPE_LOGOUT, TYPE_POLL, TYPE_RENEW, TYPE_TRANSFER, TYPE_UPDATE -
Constructor Summary
ConstructorsConstructorDescriptionAllocates a newEPPNameWatchTransferCmdwith default attribute values.EPPNameWatchTransferCmd(String aTransId, String aOp, String aRoid) EPPNameWatchTransferCmdconstructor that takes the required attributes as arguments.EPPNameWatchTransferCmd(String aTransId, String aOp, String aRoid, EPPAuthInfo aAuthInfo) EPPNameWatchTransferCmdconstructor that takes the required attributes as arguments.EPPNameWatchTransferCmd(String aTransId, String aOp, String aRoid, EPPAuthInfo aAuthInfo, EPPNameWatchPeriod aPeriod) EPPNameWatchTransferCmdconstructor that takes the required attributes plus the optional attibuteaPeriod. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPNameWatchTransferCmd.protected voidDecode theEPPNameWatchTransferCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPNameWatchTransferCmdinstance.booleanCompare an instance ofEPPNameWatchTransferCmdwith this instance.Get authorization Information.getKey()Gets the key for the NameWatch object, which is the NameWatch ROID.Gets the EPP command Namespace associated withEPPNameWatchTransferCmd.Gets the registration period of the transfer command in years.getRoid()Gets the nameWatch roid to query.voidsetAuthInfo(EPPAuthInfo newAuthInfo) Set authorization information.voidsetPeriod(EPPNameWatchPeriod aPeriod) Sets the registration period of the transfer command.voidSets the nameWatch roid to query.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class com.verisign.epp.codec.gen.EPPTransferCmd
doGenDecode, doGenEncode, getOp, getType, setOpMethods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getTransId, hasExtension, hasExtensions, hasKey, hasTransId, setExtension, setExtensions, setTransId
-
Constructor Details
-
EPPNameWatchTransferCmd
public EPPNameWatchTransferCmd()Allocates a newEPPNameWatchTransferCmdwith default attribute values. the defaults include the following:
-
roid is set to
null -
period is set to
null -
authInfo is set to to
null
The transaction ID, operation, and roid must be set before invokingencode. -
roid is set to
-
EPPNameWatchTransferCmd
EPPNameWatchTransferCmdconstructor that takes the required attributes as arguments. The period attribute is set to "0" and will not be included whenencodeis invoked.- Parameters:
aTransId- Transaction Id associated with the command.aOp- One of theEPPCommand.OP_constants associated with the transfer command.aRoid- NameWatch roid to create.
-
EPPNameWatchTransferCmd
EPPNameWatchTransferCmdconstructor that takes the required attributes as arguments. The period attribute is set to "0" and will not be included whenencodeis invoked.- Parameters:
aTransId- Transaction Id associated with the command.aOp- One of theEPPCommand.OP_constants associated with the transfer command.aRoid- NameWatch roid to create.aAuthInfo- Authorization Information for operating with the nameWatch.
-
EPPNameWatchTransferCmd
public EPPNameWatchTransferCmd(String aTransId, String aOp, String aRoid, EPPAuthInfo aAuthInfo, EPPNameWatchPeriod aPeriod) EPPNameWatchTransferCmdconstructor that takes the required attributes plus the optional attibuteaPeriod.- Parameters:
aTransId- Transaction Id associated with the command.aOp- One of theEPPCommand.OP_constants associated with the transfer command.aRoid- NameWatch roid to create.aAuthInfo- Authorization Information for operating with the nameWatch.aPeriod- Registration period to be added to the nameWatch upon transfer.
-
-
Method Details
-
getNamespace
Gets the EPP command Namespace associated withEPPNameWatchTransferCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPNameWatchMapFactory.NS
-
getKey
Gets the key for the NameWatch object, which is the NameWatch ROID.- Overrides:
getKeyin classEPPCommand- Returns:
- The NameWatch ROID if set;
nullotherwise.
-
doEncode
Encode a DOM Element tree from the attributes of theEPPNameWatchTransferCmdinstance.- Specified by:
doEncodein classEPPTransferCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPNameWatchTransferCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPNameWatchTransferCmdinstance.
-
doDecode
Decode theEPPNameWatchTransferCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPTransferCmd- Parameters:
aElement- Root DOM Element to decodeEPPNameWatchTransferCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
getRoid
Gets the nameWatch roid to query.- Returns:
- NameWatch Roid
-
setRoid
Sets the nameWatch roid to query.- Parameters:
aRoid- NameWatch Roid
-
equals
Compare an instance ofEPPNameWatchTransferCmdwith this instance.- Overrides:
equalsin classEPPTransferCmd- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
CloneEPPNameWatchTransferCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPTransferCmd- Returns:
- clone of
EPPNameWatchTransferCmd - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getAuthInfo
Get authorization Information.- Returns:
- EPPAuthInfo if defined;
nullotherwise.
-
getPeriod
Gets the registration period of the transfer command in years.- Returns:
- Registration Period in years if defined;
nullotherwise.
-
setAuthInfo
Set authorization information.- Parameters:
newAuthInfo- EPPAuthInfo
-
setPeriod
Sets the registration period of the transfer command.- Parameters:
aPeriod- Registration Period.
-