public class EPPNameWatchTransferCmd extends EPPTransferCmd
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: getName
and setName
to get and set the element.
getPeriod
and
setPeriod
to get and set the element. If return
null
, period has not been specified yet.
getOp
and setOp
to get and
set the element. One of the EPPCommand.OP_
constants need to
be specified.
getAuthInfo
and
setAuthInfo
to get and set the element.
EPPNameWatchTransferResp
is the concrete
EPPReponse
associated with
EPPNameWatchTransferCmd
. EPPNameWatchTransferResp
,
Serialized Formop
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 and Description |
---|
EPPNameWatchTransferCmd()
Allocates a new
EPPNameWatchTransferCmd with default
attribute values. |
EPPNameWatchTransferCmd(java.lang.String aTransId,
java.lang.String aOp,
java.lang.String aRoid)
EPPNameWatchTransferCmd constructor that takes the required
attributes as arguments. |
EPPNameWatchTransferCmd(java.lang.String aTransId,
java.lang.String aOp,
java.lang.String aRoid,
EPPAuthInfo aAuthInfo)
EPPNameWatchTransferCmd constructor that takes the required
attributes as arguments. |
EPPNameWatchTransferCmd(java.lang.String aTransId,
java.lang.String aOp,
java.lang.String aRoid,
EPPAuthInfo aAuthInfo,
EPPNameWatchPeriod aPeriod)
EPPNameWatchTransferCmd constructor that takes the required
attributes plus the optional attibute aPeriod . |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPNameWatchTransferCmd . |
protected void |
doDecode(org.w3c.dom.Element aElement)
Decode the
EPPNameWatchTransferCmd 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
EPPNameWatchTransferCmd instance. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPNameWatchTransferCmd with this
instance. |
EPPAuthInfo |
getAuthInfo()
Get authorization Information.
|
java.lang.String |
getNamespace()
Gets the EPP command Namespace associated with
EPPNameWatchTransferCmd . |
EPPNameWatchPeriod |
getPeriod()
Gets the registration period of the transfer command in years.
|
java.lang.String |
getRoid()
Gets the nameWatch roid to query.
|
void |
setAuthInfo(EPPAuthInfo newAuthInfo)
Set authorization information.
|
void |
setPeriod(EPPNameWatchPeriod aPeriod)
Sets the registration period of the transfer command.
|
void |
setRoid(java.lang.String aRoid)
Sets the nameWatch roid to query.
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
doGenDecode, doGenEncode, getOp, getType, setOp
addExtension, decode, encode, getExtension, getExtension, getExtensions, getTransId, hasExtension, hasExtensions, hasTransId, setExtension, setExtensions, setTransId
public EPPNameWatchTransferCmd()
EPPNameWatchTransferCmd
with default
attribute values. the defaults include the following: null
null
null
encode
.public EPPNameWatchTransferCmd(java.lang.String aTransId, java.lang.String aOp, java.lang.String aRoid)
EPPNameWatchTransferCmd
constructor that takes the required
attributes as arguments. The period attribute is set to "0" and
will not be included when encode
is invoked.aTransId
- Transaction Id associated with the command.aOp
- One of the EPPCommand.OP_
constants associated
with the transfer command.aRoid
- NameWatch roid to create.public EPPNameWatchTransferCmd(java.lang.String aTransId, java.lang.String aOp, java.lang.String aRoid, EPPAuthInfo aAuthInfo)
EPPNameWatchTransferCmd
constructor that takes the required
attributes as arguments. The period attribute is set to "0" and
will not be included when encode
is invoked.aTransId
- Transaction Id associated with the command.aOp
- One of the EPPCommand.OP_
constants associated
with the transfer command.aRoid
- NameWatch roid to create.aAuthInfo
- Authorization Information for operating with the
nameWatch.public EPPNameWatchTransferCmd(java.lang.String aTransId, java.lang.String aOp, java.lang.String aRoid, EPPAuthInfo aAuthInfo, EPPNameWatchPeriod aPeriod)
EPPNameWatchTransferCmd
constructor that takes the required
attributes plus the optional attibute aPeriod
.aTransId
- Transaction Id associated with the command.aOp
- One of the EPPCommand.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.public java.lang.String getNamespace()
EPPNameWatchTransferCmd
.getNamespace
in interface EPPCodecComponent
getNamespace
in interface EPPMessage
getNamespace
in class EPPCommand
EPPNameWatchMapFactory.NS
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPNameWatchTransferCmd
instance.doEncode
in class EPPTransferCmd
aDocument
- DOM Document that is being built. Used as an Element
factory.EPPNameWatchTransferCmd
instance.EPPEncodeException
- Unable to encode
EPPNameWatchTransferCmd
instance.protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPNameWatchTransferCmd
attributes from the
aElement DOM Element tree.doDecode
in class EPPTransferCmd
aElement
- Root DOM Element to decode
EPPNameWatchTransferCmd
from.EPPDecodeException
- Unable to decode aElementpublic java.lang.String getRoid()
public void setRoid(java.lang.String aRoid)
aRoid
- NameWatch Roidpublic boolean equals(java.lang.Object aObject)
EPPNameWatchTransferCmd
with this
instance.equals
in class EPPTransferCmd
aObject
- Object to compare with.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPNameWatchTransferCmd
.clone
in interface EPPCodecComponent
clone
in class EPPTransferCmd
EPPNameWatchTransferCmd
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 EPPCommand
String
if successful;
ERROR
otherwise.public EPPAuthInfo getAuthInfo()
null
otherwise.public EPPNameWatchPeriod getPeriod()
null
otherwise.public void setAuthInfo(EPPAuthInfo newAuthInfo)
newAuthInfo
- EPPAuthInfopublic void setPeriod(EPPNameWatchPeriod aPeriod)
aPeriod
- Registration Period.Copyright © VeriSign Inc. All Rights Reserved.