Package com.verisign.epp.codec.gen
Class EPPCreateCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPCreateCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
- Direct Known Subclasses:
EPPChangeCreateCmd,EPPContactCreateCmd,EPPDefRegCreateCmd,EPPDomainCreateCmd,EPPEmailFwdCreateCmd,EPPHostCreateCmd,EPPNameVerificationCreateCmd,EPPNameWatchCreateCmd,EPPOrgCreateCmd,EPPRegistryCreateCmd,EPPRegistryCreateCmd
The EPP <create> command is used to create an instance of an object. An
object may be created for an indefinite period of time, or an object may be
created for a specific validity period. The EPP mapping for an object MUST
describe the status of an object with respect to time, to include expected
client and server behavior if a validity period is used.
The elements needed to identify an object and associated attributes are object-specific, so the child elements of the <create> command are specified using the EPP extension framework. In addition to the standard EPP command elements, the <create> command SHALL contain the following child elements: An object-specific <obj:create> element that identifies the object to be created and the elements that are required to create the object.
The elements needed to identify an object and associated attributes are object-specific, so the child elements of the <create> command are specified using the EPP extension framework. In addition to the standard EPP command elements, the <create> command SHALL contain the following child elements: An object-specific <obj:create> element that identifies the object to be created and the elements that are required to create the object.
EPPCreateCmd is an abtract EPP command class that represents a
create operation. A command mapping create command extends
EPPCreateCmd. For example,
EPPDomainCreateCmd is a EPPCreateCmd that
implements the Domain Create Command Mapping.- See Also:
-
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
ConstructorsConstructorDescriptionDefault constructor forEPPCreateCmd.EPPCreateCmd(String aTransId) EPPCreateCmdthat takes all required attributes as arguments. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidMust be defined byEPPCreateCmdextensions (Command Mappings) to decode the attributes to a DOM Element tree.protected abstract ElementMust be defined byEPPCreateCmdextensions (Command Mappings) to encode the attributes to a DOM Element tree.protected voiddoGenDecode(Element aElement) Decodes theEPPCreateCmdattributes from theaElementDOM Element tree.protected ElementdoGenEncode(Document aDocument) Encodes a DOM Element tree from the attributes of theEPPCreateCmdinstance.booleanCompares an instance ofEPPCreateCmdwith this instance.getType()Gets the EPP command type associated withEPPCreateCmd.Methods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, clone, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getKey, getNamespace, getOp, getTransId, hasExtension, hasExtensions, hasKey, hasTransId, setExtension, setExtensions, setTransId, toString
-
Constructor Details
-
EPPCreateCmd
public EPPCreateCmd()Default constructor forEPPCreateCmd. -
EPPCreateCmd
EPPCreateCmdthat 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 Details
-
getType
Gets the EPP command type associated withEPPCreateCmd.- Specified by:
getTypein classEPPCommand- Returns:
- EPPCommand.TYPE_CREATE
-
equals
Compares an instance ofEPPCreateCmdwith this instance.- Overrides:
equalsin classEPPCommand- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
doGenEncode
Encodes a DOM Element tree from the attributes of theEPPCreateCmdinstance. 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
EPPCreateCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPCreateCmdinstance.
-
doGenDecode
Decodes theEPPCreateCmdattributes 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 decodeEPPCreateCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
doEncode
Must be defined byEPPCreateCmdextensions (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 EPPCreateCmd extension instance.
- Throws:
EPPEncodeException- Unable to encode EPPCreateCmd extension instance.
-
doDecode
Must be defined byEPPCreateCmdextensions (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 theEPPCreateCmdextension instance.- Throws:
EPPDecodeException- Unable to decodeaElement.
-