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,java.io.Serializable,java.lang.Cloneable
- Direct Known Subclasses:
EPPContactTransferCmd,EPPDefRegTransferCmd,EPPDomainTransferCmd,EPPEmailFwdTransferCmd,EPPNameWatchTransferCmd
public abstract class EPPTransferCmd extends EPPCommand
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 anopattribute with valuequery, and the following child elements: An object-specific <obj:transfer> element that identifies the object whose transfer status is requested.
EPPTransferCmdis an abstract EPP command class that represents a transfer operation. A command mapping transfer command extendsEPPTransferCmd. For example,EPPDomainTransferCmdis aEPPTransferCmdthat implements the Domain Transfer Command Mapping. The different types of transfer operations can be one of theEPPCommand.OP_constants.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringopOperation "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
Constructors Constructor Description EPPTransferCmd()Default constructor.EPPTransferCmd(java.lang.String aTransId, java.lang.String aOp)EPPTransferCmdthat takes all required attributes as arguments.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPTransferCmd.protected abstract voiddoDecode(org.w3c.dom.Element aElement)Must be defined byEPPTransferCmdextensions (Command Mappings) to decode the attributes to a DOM Element tree.protected abstract org.w3c.dom.ElementdoEncode(org.w3c.dom.Document aDocument)Must be defined byEPPTransferCmdextensions (Command Mappings) to encode the attributes to a DOM Element tree.protected voiddoGenDecode(org.w3c.dom.Element aElement)Decodes theEPPTransferCmdattributes from theaElementDOM Element tree.protected org.w3c.dom.ElementdoGenEncode(org.w3c.dom.Document aDocument)Encodes a DOM Element tree from the attributes of theEPPTransferCmdinstance.booleanequals(java.lang.Object aObject)Compares an instance of EPPTransferCmd with this instance.java.lang.StringgetOp()Gets the EPP command operation attribute associated withEPPTransferCmd.java.lang.StringgetType()Gets the EPP command type associated with EPPTransferCmd.voidsetOp(java.lang.String aOp)Sets 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, getNamespace, getTransId, hasExtension, hasExtensions, hasTransId, setExtension, setExtensions, setTransId, toString
-
-
-
-
Constructor Detail
-
EPPTransferCmd
public EPPTransferCmd()
Default constructor. Will set Authorization Id to null.
-
EPPTransferCmd
public EPPTransferCmd(java.lang.String aTransId, java.lang.String aOp)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 Detail
-
getType
public java.lang.String getType()
Gets the EPP command type associated with EPPTransferCmd.- Specified by:
getTypein classEPPCommand- Returns:
EPPCommand.TYPE_TRANSFER
-
getOp
public java.lang.String 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
public void setOp(java.lang.String aOp)
Sets the EPP command operation attribute associated withEPPTransferCmd.- Parameters:
aOp- One of theEPPCommand.OP_constants associated with the transfer command.
-
equals
public boolean equals(java.lang.Object aObject)
Compares an instance of EPPTransferCmd with this instance.- Overrides:
equalsin classEPPCommand- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise
-
doGenEncode
protected org.w3c.dom.Element doGenEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncodes 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
protected void doGenDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecodes 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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPTransferCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPTransferCmd - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
doEncode
protected abstract org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionMust 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
protected abstract void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionMust 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.
-
-