Package com.verisign.epp.codec.registry
Class EPPRegistryCreateCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPCreateCmd
com.verisign.epp.codec.registry.EPPRegistryCreateCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP Registry <create> command, which provides a transform
operation that allows a client to create a registry object. In addition to
the standard EPP command elements, the <create> command MUST contain a
<registry:create> element that identifies the registry namespace and
the location of the registry schema. The <registry:create> element MUST
contain the following child elements:
- A <registry:zone> element that contains the detailed registry
information of the object to be created. Use
getZoneandsetZoneto get and set the element.
EPPRegistryCreateResp is the concrete EPPReponse
associated with EPPRegistryCreateCmd.- 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
ConstructorsConstructorDescriptionCreates an empty EPPRegistryCreateCmd object.EPPRegistryCreateCmd(String aTransId, EPPRegistryZoneInfo zone) Creates a new EPPRegistryCreateCmd object that will create a registry object based on the info inzone. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryCreateCmd.protected voidDecode theEPPRegistryCreateCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPRegistryCreateCmdinstance.booleanCompare an instance ofEPPRegistryCreateCmdwith this instance.getKey()Gets the key for the registry object, which is the registry zone name.Get the EPP command Namespace associated withEPPRegistryCreateCmd.getZone()Get zone to createvoidsetZone(EPPRegistryZoneInfo zone) Set zone to createtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class com.verisign.epp.codec.gen.EPPCreateCmd
doGenDecode, doGenEncode, getTypeMethods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasKey, hasTransId, setExtension, setExtensions, setTransId
-
Constructor Details
-
EPPRegistryCreateCmd
public EPPRegistryCreateCmd()Creates an empty EPPRegistryCreateCmd object.zoneis set tonull. UsesetZoneto setzoneattribute before sending the create command. -
EPPRegistryCreateCmd
Creates a new EPPRegistryCreateCmd object that will create a registry object based on the info inzone.- Parameters:
aTransId- Transaction Id associated with command.zone- Instance ofEPPRegistryZoneInfoto create
-
-
Method Details
-
getNamespace
Get the EPP command Namespace associated withEPPRegistryCreateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPRegistryMapFactory.NS
-
equals
Compare an instance ofEPPRegistryCreateCmdwith this instance.- Overrides:
equalsin classEPPCreateCmd- Parameters:
aObject- Object to compare with.- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
clone
CloneEPPRegistryCreateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPRegistryCreateCmd - 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.
-
doEncode
Encode a DOM Element tree from the attributes of theEPPRegistryCreateCmdinstance.- Specified by:
doEncodein classEPPCreateCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPRegistryCreateCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPRegistryCreateCmdinstance.
-
doDecode
Decode theEPPRegistryCreateCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPCreateCmd- Parameters:
aElement- Root DOM Element to decodeEPPRegistryCreateCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
getZone
Get zone to create- Returns:
- Instance of
EPPRegistryZoneInfoto create
-
setZone
Set zone to create- Parameters:
zone- Instance ofEPPRegistryZoneInfoto create
-
getKey
Gets the key for the registry object, which is the registry zone name.- Overrides:
getKeyin classEPPCommand- Returns:
- The zone name if set;
nullotherwise.
-