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
,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
getZone
andsetZone
to get and set the element.
EPPRegistryCreateResp
is the concreteEPPReponse
associated withEPPRegistryCreateCmd
.
- See Also:
EPPRegistryCreateResp
, 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 EPPRegistryCreateCmd()
Creates an empty EPPRegistryCreateCmd object.EPPRegistryCreateCmd(java.lang.String aTransId, EPPRegistryZoneInfo zone)
Creates a new EPPRegistryCreateCmd object 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.Object
clone()
CloneEPPRegistryCreateCmd
.protected void
doDecode(org.w3c.dom.Element aElement)
Decode theEPPRegistryCreateCmd
attributes from the aElement DOM Element tree.protected org.w3c.dom.Element
doEncode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of theEPPRegistryCreateCmd
instance.boolean
equals(java.lang.Object aObject)
Compare an instance ofEPPRegistryCreateCmd
with this instance.java.lang.String
getNamespace()
Get the EPP command Namespace associated withEPPRegistryCreateCmd
.EPPRegistryZoneInfo
getZone()
Get zone to createvoid
setZone(EPPRegistryZoneInfo zone)
Set zone to createjava.lang.String
toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation 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
-
-
-
-
Constructor Detail
-
EPPRegistryCreateCmd
public EPPRegistryCreateCmd()
Creates an empty EPPRegistryCreateCmd object.zone
is set tonull
. UsesetZone
to setzone
attribute before sending the create command.
-
EPPRegistryCreateCmd
public EPPRegistryCreateCmd(java.lang.String aTransId, EPPRegistryZoneInfo zone)
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 ofEPPRegistryZoneInfo
to create
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
Get the EPP command Namespace associated withEPPRegistryCreateCmd
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Specified by:
getNamespace
in interfaceEPPMessage
- Specified by:
getNamespace
in classEPPCommand
- Returns:
EPPRegistryMapFactory
.NS
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPRegistryCreateCmd
with this instance.- Overrides:
equals
in classEPPCreateCmd
- Parameters:
aObject
- Object to compare with.- Returns:
true
if this object is the same as the aObject argument;false
otherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPRegistryCreateCmd
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in 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 XMLString
representation of the concreteEPPCodecComponent
.- Overrides:
toString
in classEPPCommand
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Encode a DOM Element tree from the attributes of theEPPRegistryCreateCmd
instance.- Specified by:
doEncode
in classEPPCreateCmd
- Parameters:
aDocument
- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPRegistryCreateCmd
instance. - Throws:
EPPEncodeException
- Unable to encodeEPPRegistryCreateCmd
instance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode theEPPRegistryCreateCmd
attributes from the aElement DOM Element tree.- Specified by:
doDecode
in classEPPCreateCmd
- Parameters:
aElement
- Root DOM Element to decodeEPPRegistryCreateCmd
from.- Throws:
EPPDecodeException
- Unable to decode aElement
-
getZone
public EPPRegistryZoneInfo getZone()
Get zone to create- Returns:
- Instance of
EPPRegistryZoneInfo
to create
-
setZone
public void setZone(EPPRegistryZoneInfo zone)
Set zone to create- Parameters:
zone
- Instance ofEPPRegistryZoneInfo
to create
-
-