public class EPPEmailFwdTransferCmd extends EPPTransferCmd
op attribute with
value query, and a <emailFwd:transfer> element that
identifies the emailFwd namespace and the location of the emailFwd schema.
The <emailFwd: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.
EPPEmailFwdTransferResp is the concrete EPPReponse
associated with EPPEmailFwdTransferCmd.EPPEmailFwdTransferResp,
Serialized Formopextensions, 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 |
|---|
EPPEmailFwdTransferCmd()
Allocates a new
EPPEmailFwdTransferCmd with default
attribute values. |
EPPEmailFwdTransferCmd(java.lang.String aTransId,
java.lang.String aOp,
java.lang.String aName)
EPPEmailFwdTransferCmd constructor that takes the required
attributes as arguments. |
EPPEmailFwdTransferCmd(java.lang.String aTransId,
java.lang.String aOp,
java.lang.String aName,
EPPAuthInfo aAuthInfo,
EPPEmailFwdPeriod aPeriod)
EPPEmailFwdTransferCmd constructor that takes the required
attributes plus the optional attibute aPeriod. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPEmailFwdTransferCmd. |
protected void |
doDecode(org.w3c.dom.Element aElement)
Decode the
EPPEmailFwdTransferCmd 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
EPPEmailFwdTransferCmd instance. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPEmailFwdTransferCmd with this
instance. |
EPPAuthInfo |
getAuthInfo()
Get authorization Information.
|
java.lang.String |
getName()
Gets the emailFwd name to query.
|
java.lang.String |
getNamespace()
Gets the EPP command Namespace associated with
EPPEmailFwdTransferCmd. |
EPPEmailFwdPeriod |
getPeriod()
Gets the registration period of the transfer command in years.
|
void |
setAuthInfo(EPPAuthInfo newAuthInfo)
Set authorization information.
|
void |
setName(java.lang.String aName)
Sets the emailFwd name to query.
|
void |
setPeriod(EPPEmailFwdPeriod aPeriod)
Sets the registration period of the transfer command.
|
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, setOpaddExtension, decode, encode, getExtension, getExtension, getExtensions, getTransId, hasExtension, hasExtensions, hasTransId, setExtension, setExtensions, setTransIdpublic EPPEmailFwdTransferCmd()
EPPEmailFwdTransferCmd with default
attribute values. the defaults include the following: null
null
null
encode.public EPPEmailFwdTransferCmd(java.lang.String aTransId,
java.lang.String aOp,
java.lang.String aName)
EPPEmailFwdTransferCmd constructor that takes the required
attributes as arguments. The period attribute is set to
UNSPEC_PERIOD 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.aName - EmailFwd name to create.public EPPEmailFwdTransferCmd(java.lang.String aTransId,
java.lang.String aOp,
java.lang.String aName,
EPPAuthInfo aAuthInfo,
EPPEmailFwdPeriod aPeriod)
EPPEmailFwdTransferCmd 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.aName - EmailFwd name to create.aAuthInfo - Authorization Information for operating with the
emailFwd.aPeriod - Registration period to be added to the emailFwd upon
transfer.public java.lang.String getNamespace()
EPPEmailFwdTransferCmd.getNamespace in interface EPPCodecComponentgetNamespace in interface EPPMessagegetNamespace in class EPPCommandEPPEmailFwdMapFactory.NSprotected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPEmailFwdTransferCmd instance.doEncode in class EPPTransferCmdaDocument - DOM Document that is being built. Used as an Element
factory.EPPEmailFwdTransferCmd instance.EPPEncodeException - Unable to encode
EPPEmailFwdTransferCmd instance.protected void doDecode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPEmailFwdTransferCmd attributes from the
aElement DOM Element tree.doDecode in class EPPTransferCmdaElement - Root DOM Element to decode
EPPEmailFwdTransferCmd from.EPPDecodeException - Unable to decode aElementpublic java.lang.String getName()
null otherwise.public void setName(java.lang.String aName)
aName - EmailFwd Namepublic boolean equals(java.lang.Object aObject)
EPPEmailFwdTransferCmd with this
instance.equals in class EPPTransferCmdaObject - Object to compare with.public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPEmailFwdTransferCmd.clone in interface EPPCodecComponentclone in class EPPTransferCmdEPPEmailFwdTransferCmdjava.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 EPPCommandString if successful;
ERROR otherwise.public EPPAuthInfo getAuthInfo()
public EPPEmailFwdPeriod getPeriod()
null
otherwise.public void setAuthInfo(EPPAuthInfo newAuthInfo)
newAuthInfo - com.verisign.epp.codec.emailFwd.EPPAuthInfopublic void setPeriod(EPPEmailFwdPeriod aPeriod)
aPeriod - Registration Period.Copyright © VeriSign Inc. All Rights Reserved.