Package com.verisign.epp.codec.gen
Class EPPTransferCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPTransferCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
- Direct Known Subclasses:
EPPContactTransferCmd,EPPDefRegTransferCmd,EPPDomainTransferCmd,EPPEmailFwdTransferCmd,EPPNameWatchTransferCmd
The EPP <transfer> command provides a query operation that allows a
client to determine real-time status of pending and completed transfer
requests. The elements needed to identify an object that is the subject of
a transfer request are object-specific, so the child elements of the
<transfer> query command are specified using the EPP extension
framework. In addition to the standard EPP command elements, the
<transfer> command SHALL contain an
op attribute with
value query, and the following child elements: An
object-specific <obj:transfer> element that identifies the object whose
transfer status is requested. EPPTransferCmd is an abstract EPP command class that represents
a transfer operation. A command mapping transfer command extends
EPPTransferCmd. For example,
EPPDomainTransferCmd is a EPPTransferCmd that
implements the Domain Transfer Command Mapping. The different types of
transfer operations can be one of the EPPCommand.OP_
constants.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringOperation "op" associated with theEPPTransferCmd.Fields 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
ConstructorsConstructorDescriptionDefault constructor.EPPTransferCmd(String aTransId, String aOp) EPPTransferCmdthat takes all required attributes as arguments. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPTransferCmd.protected abstract voidMust be defined byEPPTransferCmdextensions (Command Mappings) to decode the attributes to a DOM Element tree.protected abstract ElementMust be defined byEPPTransferCmdextensions (Command Mappings) to encode the attributes to a DOM Element tree.protected voiddoGenDecode(Element aElement) Decodes theEPPTransferCmdattributes from theaElementDOM Element tree.protected ElementdoGenEncode(Document aDocument) Encodes a DOM Element tree from the attributes of theEPPTransferCmdinstance.booleanCompares an instance of EPPTransferCmd with this instance.getOp()Gets the EPP command operation attribute associated withEPPTransferCmd.getType()Gets the EPP command type associated with EPPTransferCmd.voidSets the EPP command operation attribute associated withEPPTransferCmd.Methods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getKey, getNamespace, getTransId, hasExtension, hasExtensions, hasKey, hasTransId, setExtension, setExtensions, setTransId, toString
-
Field Details
-
op
Operation "op" associated with theEPPTransferCmd. This should be equal to one of theEPPCommand.OP_constants.
-
-
Constructor Details
-
EPPTransferCmd
public EPPTransferCmd()Default constructor. Will set Authorization Id to null. -
EPPTransferCmd
EPPTransferCmdthat takes all required attributes as arguments.- Parameters:
aTransId- Transaction Id associated with command.aOp- One of theEPPCommand.OP_constants associated with the transfer command.
-
-
Method Details
-
getType
Gets the EPP command type associated with EPPTransferCmd.- Specified by:
getTypein classEPPCommand- Returns:
EPPCommand.TYPE_TRANSFER
-
getOp
Gets the EPP command operation attribute associated withEPPTransferCmd.- Overrides:
getOpin classEPPCommand- Returns:
- One of the
EPPCommand.OP_constants associated with the transfer command.
-
setOp
Sets the EPP command operation attribute associated withEPPTransferCmd.- Parameters:
aOp- One of theEPPCommand.OP_constants associated with the transfer command.
-
equals
Compares an instance of EPPTransferCmd with this instance.- Overrides:
equalsin classEPPCommand- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise
-
doGenEncode
Encodes a DOM Element tree from the attributes of theEPPTransferCmdinstance. This method is a member of the Template Design Pattern.EPPCommand.encodeis a Template Method and this method is a Primitive Operation within the Template Method Design Pattern.- Specified by:
doGenEncodein classEPPCommand- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPTransferCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPTransferCmdinstance.
-
doGenDecode
Decodes theEPPTransferCmdattributes from theaElementDOM Element tree. This method is a member of the Template Design Pattern.EPPCommand.decodeis a Template Method and this method is a Primitive Operation within the Template Method Design Pattern.- Specified by:
doGenDecodein classEPPCommand- Parameters:
aElement- Root DOM Element to decodeEPPTransferCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPTransferCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPTransferCmd - Throws:
CloneNotSupportedException- standard Object.clone exception
-
doEncode
Must be defined byEPPTransferCmdextensions (Command Mappings) to encode the attributes to a DOM Element tree.doGenEncodeis a Template Method and this method is a Primitive Operation within the Template Method Design Pattern.- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the EPPTransferCmd extension instance.
- Throws:
EPPEncodeException- Unable to encode EPPTransferCmd extension instance.
-
doDecode
Must be defined byEPPTransferCmdextensions (Command Mappings) to decode the attributes to a DOM Element tree.doGenDecodeis a Template Method and this method is a Primitive Operation within the Template Method Design Pattern.- Parameters:
aElement- Root DOM Element representing theEPPTransferCmdextension instance.- Throws:
EPPDecodeException- Unable to decodeaElement.
-