Package com.verisign.epp.codec.emailFwd
Class EPPEmailFwdTransferCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPTransferCmd
com.verisign.epp.codec.emailFwd.EPPEmailFwdTransferCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP EmailFwd <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
EPPhttp://www.niscom.nic.in/NISTXT/services/Ser1AA.htm command elements,
the <transfer> command MUST contain an
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: -
A <emailFwd:name> element that contains the fully qualified emailFwd
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 <emailFwd:period> element that contains the initial
registration period of the emailFwd 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 <emailFwd:authInfo> element that contains authorization information
associated with the emailFwd object or authorization information associated
with the emailFwd 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.
EPPEmailFwdTransferResp is the concrete EPPReponse
associated with EPPEmailFwdTransferCmd.- 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 newEPPEmailFwdTransferCmdwith default attribute values.EPPEmailFwdTransferCmd(String aTransId, String aOp, String aName) EPPEmailFwdTransferCmdconstructor that takes the required attributes as arguments.EPPEmailFwdTransferCmd(String aTransId, String aOp, String aName, EPPAuthInfo aAuthInfo, EPPEmailFwdPeriod aPeriod) EPPEmailFwdTransferCmdconstructor that takes the required attributes plus the optional attibuteaPeriod. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPEmailFwdTransferCmd.protected voidDecode theEPPEmailFwdTransferCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPEmailFwdTransferCmdinstance.booleanCompare an instance ofEPPEmailFwdTransferCmdwith this instance.Get authorization Information.getKey()Gets the key for the emailFwd object, which is the emailFwd name.getName()Gets the emailFwd name to query.Gets the EPP command Namespace associated withEPPEmailFwdTransferCmd.Gets the registration period of the transfer command in years.voidsetAuthInfo(EPPAuthInfo newAuthInfo) Set authorization information.voidSets the emailFwd name to query.voidsetPeriod(EPPEmailFwdPeriod aPeriod) Sets the registration period of the transfer command.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
-
EPPEmailFwdTransferCmd
public EPPEmailFwdTransferCmd()Allocates a newEPPEmailFwdTransferCmdwith default attribute values. the defaults include the following:
-
name is set to
null -
period is set to
null -
authInfo is set to to
null
The transaction ID, operation, name, and authInfo must be set before invokingencode. -
name is set to
-
EPPEmailFwdTransferCmd
EPPEmailFwdTransferCmdconstructor that takes the required attributes as arguments. The period attribute is set toUNSPEC_PERIODand 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.aName- EmailFwd name to create.
-
EPPEmailFwdTransferCmd
public EPPEmailFwdTransferCmd(String aTransId, String aOp, String aName, EPPAuthInfo aAuthInfo, EPPEmailFwdPeriod aPeriod) EPPEmailFwdTransferCmdconstructor 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.aName- EmailFwd name to create.aAuthInfo- Authorization Information for operating with the emailFwd.aPeriod- Registration period to be added to the emailFwd upon transfer.
-
-
Method Details
-
getNamespace
Gets the EPP command Namespace associated withEPPEmailFwdTransferCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPEmailFwdMapFactory.NS
-
getKey
Gets the key for the emailFwd object, which is the emailFwd name.- Overrides:
getKeyin classEPPCommand- Returns:
- The emailFwd name if set;
nullotherwise.
-
doEncode
Encode a DOM Element tree from the attributes of theEPPEmailFwdTransferCmdinstance.- Specified by:
doEncodein classEPPTransferCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPEmailFwdTransferCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPEmailFwdTransferCmdinstance.
-
doDecode
Decode theEPPEmailFwdTransferCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPTransferCmd- Parameters:
aElement- Root DOM Element to decodeEPPEmailFwdTransferCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
getName
Gets the emailFwd name to query.- Returns:
- EmailFwd Name if defined;
nullotherwise.
-
setName
Sets the emailFwd name to query.- Parameters:
aName- EmailFwd Name
-
equals
Compare an instance ofEPPEmailFwdTransferCmdwith this instance.- Overrides:
equalsin classEPPTransferCmd- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
CloneEPPEmailFwdTransferCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPTransferCmd- Returns:
- clone of
EPPEmailFwdTransferCmd - 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:
- com.verisign.epp.codec.emailFwd.EPPAuthInfo
-
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- com.verisign.epp.codec.emailFwd.EPPAuthInfo
-
setPeriod
Sets the registration period of the transfer command.- Parameters:
aPeriod- Registration Period.
-