Package com.verisign.epp.codec.registry
Class EPPRegistryUpdateCmd
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPCommand
-
- com.verisign.epp.codec.gen.EPPUpdateCmd
-
- com.verisign.epp.codec.registry.EPPRegistryUpdateCmd
-
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryUpdateCmd extends EPPUpdateCmd
Represents an EPP Registry <update> command. The EPP <update> command provides a transform operation that allows a client to modify the attributes of a zone object. In addition to the standard EPP command elements, the <update> command MUST contain a <domain:update> element that identifies the domain namespace and the location of the domain schema. In addition to The <registry:update> element SHALL contain the following child elements:
- A <registry:zone> element that contains the detailed registry
information of the object to be updated. Use
getZoneandsetZoneto get and set the element.
EPPRegistryUpdateRespis the concreteEPPReponseassociated withEPPRegistryUpdateCmd.
- See Also:
EPPRegistryUpdateResp, 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 EPPRegistryUpdateCmd()Creates an empty EPPRegistryUpdateCmd object.EPPRegistryUpdateCmd(java.lang.String aTransId, EPPRegistryZoneInfo zone)Creates a new EPPRegistryUpdateCmd object that will update a registry object based on the info inzone.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRegistryUpdateCmd.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPRegistryUpdateCmdattributes 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 theEPPRegistryUpdateCmdinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPRegistryUpdateCmdwith this instance.java.lang.StringgetKey()Gets the key for the registry object, which is the registry zone name.java.lang.StringgetNamespace()Get the EPP command Namespace associated with EPPRegistryUpdateCmd.EPPRegistryZoneInfogetZone()Get zone to update.voidsetZone(EPPRegistryZoneInfo zone)Set zone to update.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.-
Methods inherited from class com.verisign.epp.codec.gen.EPPUpdateCmd
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, hasKey, hasTransId, setExtension, setExtensions, setTransId
-
-
-
-
Constructor Detail
-
EPPRegistryUpdateCmd
public EPPRegistryUpdateCmd()
Creates an empty EPPRegistryUpdateCmd object.zoneis set tonull. UsesetZoneto setzoneattribute before sending the update command.
-
EPPRegistryUpdateCmd
public EPPRegistryUpdateCmd(java.lang.String aTransId, EPPRegistryZoneInfo zone)Creates a new EPPRegistryUpdateCmd object that will update a registry object based on the info inzone.- Parameters:
aTransId- Transaction Id associated with command.zone- Instance ofEPPRegistryZoneInfoto update
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
Get the EPP command Namespace associated with EPPRegistryUpdateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPRegistryMapFactory.NS
-
getKey
public java.lang.String getKey()
Gets the key for the registry object, which is the registry zone name.- Overrides:
getKeyin classEPPCommand- Returns:
- The zone name if set;
nullotherwise.
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPRegistryUpdateCmdwith this instance.- Overrides:
equalsin classEPPUpdateCmd- 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.CloneNotSupportedExceptionCloneEPPRegistryUpdateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPRegistryUpdateCmd - 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 theEPPRegistryUpdateCmdinstance.- Specified by:
doEncodein classEPPUpdateCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPRegistryUpdateCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPRegistryUpdateCmdinstance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPRegistryUpdateCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPUpdateCmd- Parameters:
aElement- Root DOM Element to decodeEPPRegistryUpdateCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
getZone
public EPPRegistryZoneInfo getZone()
Get zone to update.- Returns:
- Instance of
EPPRegistryZoneInfoto update
-
setZone
public void setZone(EPPRegistryZoneInfo zone)
Set zone to update.- Parameters:
zone- Instance ofEPPRegistryZoneInfoto update
-
-