Package com.verisign.epp.codec.gen
Class EPPRenewCmd
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPCommand
-
- com.verisign.epp.codec.gen.EPPRenewCmd
-
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,java.io.Serializable,java.lang.Cloneable
- Direct Known Subclasses:
EPPDefRegRenewCmd,EPPDomainRenewCmd,EPPEmailFwdRenewCmd,EPPNameWatchRenewCmd
public abstract class EPPRenewCmd extends EPPCommand
The EPP <renew> command is used to extend the validity period of an existing object. The elements needed to identify and extend the validity period of an object are object-specific, so the child elements of the <renew> command are specified using the EPP extension framework. In addition to the standard EPP command elements, the <renew> command SHALL contain the following child elements: An object-specific <obj:renew> element that identifies the object to be renewed and the elements that are required to extend the validity period of the object.
EPPRenewCmdis an abtract EPP command class that represents a renew operation. A command mapping renew command extendsEPPRenewCmd. For example,EPPDomainRenewCmdis aEPPRenewCmdthat implements the Domain Renew Command Mapping.- See Also:
- Serialized Form
-
-
Field Summary
-
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 EPPRenewCmd()Default constructor forEPPRenewCmd.EPPRenewCmd(java.lang.String aTransId)EPPRenewCmdthat takes all required attributes as arguments.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voiddoDecode(org.w3c.dom.Element aElement)Must be defined byEPPRenewCmdextensions (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 byEPPRenewCmdextensions (Command Mappings) to encode the attributes to a DOM Element tree.protected voiddoGenDecode(org.w3c.dom.Element aElement)Decodes theEPPRenewCmdattributes from theaElementDOM Element tree.protected org.w3c.dom.ElementdoGenEncode(org.w3c.dom.Document aDocument)Encodes a DOM Element tree from the attributes of theEPPRenewCmdinstance.booleanequals(java.lang.Object aObject)Compares an instance ofEPPRenewCmdwith this instance.java.lang.StringgetType()Gets the EPP command type associated withEPPRenewCmd.-
Methods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, clone, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getNamespace, getOp, getTransId, hasExtension, hasExtensions, hasTransId, setExtension, setExtensions, setTransId, toString
-
-
-
-
Constructor Detail
-
EPPRenewCmd
public EPPRenewCmd()
Default constructor forEPPRenewCmd.
-
EPPRenewCmd
public EPPRenewCmd(java.lang.String aTransId)
EPPRenewCmdthat takes all required attributes as arguments. This will call the superEPPCommand(String)method to set the transaction id for the command.- Parameters:
aTransId- Transaction Id associated with command.
-
-
Method Detail
-
getType
public java.lang.String getType()
Gets the EPP command type associated withEPPRenewCmd.- Specified by:
getTypein classEPPCommand- Returns:
- EPPCommand.TYPE_RENEW
-
equals
public boolean equals(java.lang.Object aObject)
Compares an instance ofEPPRenewCmdwith this instance.- Overrides:
equalsin classEPPCommand- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
doGenEncode
protected org.w3c.dom.Element doGenEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncodes a DOM Element tree from the attributes of theEPPRenewCmdinstance. 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
EPPRenewCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPRenewCmdinstance.
-
doGenDecode
protected void doGenDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecodes theEPPRenewCmdattributes 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 decodeEPPRenewCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
doEncode
protected abstract org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionMust be defined byEPPRenewCmdextensions (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 EPPRenewCmd extension instance.
- Throws:
EPPEncodeException- Unable to encode EPPRenewCmd extension instance.
-
doDecode
protected abstract void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionMust be defined byEPPRenewCmdextensions (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 theEPPRenewCmdextension instance.- Throws:
EPPDecodeException- Unable to decodeaElement.
-
-