Class EPPRegistryCreateCmd
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPCommand
-
- com.verisign.epp.codec.gen.EPPCreateCmd
-
- com.verisign.epp.codec.registry.v02.EPPRegistryCreateCmd
-
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryCreateCmd extends EPPCreateCmd
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.
EPPRegistryCreateRespis the concreteEPPReponseassociated withEPPRegistryCreateCmd.
- See Also:
EPPRegistryCreateResp, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPRegistryCreateCmd.static java.lang.StringELM_NAMEXML root tag forEPPRegistryCreateCmd.-
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 EPPRegistryCreateCmd()Creates an emptyEPPRegistryCreateCmdobject.EPPRegistryCreateCmd(java.lang.String aTransId, EPPRegistryZone aZone)Creates a newEPPRegistryCreateCmdobject that will create a registry object based on the info inzone.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRegistryCreateCmd.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPRegistryCreateCmdattributes from the aElement DOM Element tree.protected org.w3c.dom.ElementdoEncode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryCreateCmdinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPRegistryCreateCmdwith this instance.java.lang.StringgetNamespace()Get the EPP command Namespace associated withEPPRegistryCreateCmd.EPPRegistryZonegetZone()Get zone to createvoidsetZone(EPPRegistryZone aZone)Set zone to createjava.lang.StringtoString()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, getType
-
Methods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasTransId, setExtension, setExtensions, setTransId
-
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPRegistryCreateCmd.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPRegistryCreateCmd.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryCreateCmd
public EPPRegistryCreateCmd()
Creates an emptyEPPRegistryCreateCmdobject.zoneis set tonull. UsesetZoneto setzoneattribute before sending the create command.
-
EPPRegistryCreateCmd
public EPPRegistryCreateCmd(java.lang.String aTransId, EPPRegistryZone aZone)Creates a newEPPRegistryCreateCmdobject that will create a registry object based on the info inzone.- Parameters:
aTransId- Transaction Id associated with command.aZone- Instance ofEPPRegistryZoneto create
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
Get the EPP command Namespace associated withEPPRegistryCreateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPRegistryMapFactory.NS
-
equals
public boolean equals(java.lang.Object aObject)
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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryCreateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPRegistryCreateCmd - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public EPPRegistryZone getZone()
Get zone to create- Returns:
- Instance of
EPPRegistryZoneto create
-
setZone
public void setZone(EPPRegistryZone aZone)
Set zone to create- Parameters:
aZone- Instance ofEPPRegistryZoneto create
-
-