Class EPPRegistryUpdateCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPUpdateCmd
com.verisign.epp.codec.registry.v02.EPPRegistryUpdateCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
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.
EPPRegistryUpdateResp is the concrete EPPReponse associated
with EPPRegistryUpdateCmd.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPRegistryUpdateCmd.static final StringXML root tag forEPPRegistryUpdateCmd.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 EPPRegistryUpdateCmd object.EPPRegistryUpdateCmd(String aTransId, EPPRegistryZone aZone) Creates a new EPPRegistryUpdateCmd object that will update a registry object based on the info inzone. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryUpdateCmd.protected voidDecode theEPPRegistryUpdateCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPRegistryUpdateCmdinstance.booleanCompare an instance ofEPPRegistryUpdateCmdwith this instance.getKey()Gets the key for the registry object, which is the registry zone name.Get the EPP command Namespace associated with EPPRegistryUpdateCmd.getZone()Gets the zone to update.voidsetZone(EPPRegistryZone aZone) Sets the zone to update.toString()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, 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
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPRegistryUpdateCmd.- See Also:
-
ELM_NAME
XML root tag forEPPRegistryUpdateCmd.- See Also:
-
-
Constructor Details
-
EPPRegistryUpdateCmd
public EPPRegistryUpdateCmd()Creates an empty EPPRegistryUpdateCmd object.zoneis set tonull. UsesetZoneto setzoneattribute before sending the update command. -
EPPRegistryUpdateCmd
Creates a new EPPRegistryUpdateCmd object that will update a registry object based on the info inzone.- Parameters:
aTransId- Transaction Id associated with command.aZone- Instance ofEPPRegistryZoneto update
-
-
Method Details
-
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
Gets the key for the registry object, which is the registry zone name.- Overrides:
getKeyin classEPPCommand- Returns:
- The zone name if set;
nullotherwise.
-
equals
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
CloneEPPRegistryUpdateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPRegistryUpdateCmd - 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 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
Decode 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
Gets the zone to update.- Returns:
- Instance of
EPPRegistryZoneto update
-
setZone
Sets the zone to update.- Parameters:
aZone- Instance ofEPPRegistryZoneto update
-