Package com.verisign.epp.codec.host
Class EPPHostUpdateCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPUpdateCmd
com.verisign.epp.codec.host.EPPHostUpdateCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP Host <update> command, which provides a transform
operation that allows a client to modify the attributes of a host object. In
addition to the standard EPP command elements, the <update> command
MUST contain a <host:update> element that identifies the host namespace
and the location of the host schema. The <host:update> element SHALL
contain the following child elements:
- A <host:name> element that contains the fully qualified host name
of the object to be updated. Use
getNameandsetNameto get and set the element. - An OPTIONAL <host:add> element that contains attribute values to be
added to the host object. Use
getAddandsetAddto get and set the element. - An OPTIONAL <host:rem> element that contains attribute values to be
removed from the host object. Use
getRemoveandsetRemoveto get and set the element. - An OPTIONAL <host:chg> element that contains attribute values to be
changed from the host object. Use
getChangeandsetChangeto get and set the element.
EPPReponse is the response associated with EPPHostUpdateCmd.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPHostUpdateCmd.static final StringXML Element Name ofEPPHostUpdateCmdroot element.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
ConstructorsConstructorDescriptionEPPHostUpdateCmddefault constructor.EPPHostUpdateCmd(String aTransId, String aName) EPPHostUpdateCmdconstructor.EPPHostUpdateCmd(String aTransId, String aName, EPPHostAddRemove aAdd, EPPHostAddRemove aRemove, EPPHostAddRemove aChange) EPPHostUpdateCmdconstructor that takes the required attributes as arguments. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPHostUpdateCmd.protected voidDecode theEPPHostUpdateCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPHostUpdateCmdinstance.booleanCompare an instance ofEPPHostUpdateCmdwith this instance.getAdd()Gets the items to add to the host.Gets the items to change to the host.getKey()Gets the key for the host object, which is the host name.getName()Gets the host name to update.Gets the EPP command Namespace associated withEPPHostUpdateCmd.Gets the items to remove from the host.voidsetAdd(EPPHostAddRemove aAdd) Sets the items to add to the host.voidsetChange(EPPHostAddRemove newChange) Sets the items to add to the host.voidSets the host name to update.voidsetRemove(EPPHostAddRemove aRemove) Sets the items to remove from the host.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 forEPPHostUpdateCmd.- See Also:
-
ELM_NAME
XML Element Name ofEPPHostUpdateCmdroot element.- See Also:
-
-
Constructor Details
-
EPPHostUpdateCmd
public EPPHostUpdateCmd()EPPHostUpdateCmddefault constructor. The name is initialized tonull. The name must be set before invokingencode. -
EPPHostUpdateCmd
EPPHostUpdateCmdconstructor.- Parameters:
aTransId- Transaction Id associated with the command.aName- Host name to update.
-
EPPHostUpdateCmd
public EPPHostUpdateCmd(String aTransId, String aName, EPPHostAddRemove aAdd, EPPHostAddRemove aRemove, EPPHostAddRemove aChange) EPPHostUpdateCmdconstructor that takes the required attributes as arguments.- Parameters:
aTransId- Transaction Id associated with the command.aName- Host name to update.aAdd- Attributes to add to the host.nullif no additions.aRemove- Attributes to remove from the host.nullif no removals.aChange- Attributes to change from the host.nullif no changes.
-
-
Method Details
-
getNamespace
Gets the EPP command Namespace associated withEPPHostUpdateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPHostMapFactory.NS
-
getKey
Gets the key for the host object, which is the host name.- Overrides:
getKeyin classEPPCommand- Returns:
- The host name if set;
nullotherwise.
-
doEncode
Encode a DOM Element tree from the attributes of theEPPHostUpdateCmdinstance.- Specified by:
doEncodein classEPPUpdateCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPHostUpdateCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPHostUpdateCmdinstance.
-
doDecode
Decode theEPPHostUpdateCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPUpdateCmd- Parameters:
aElement- Root DOM Element to decodeEPPHostUpdateCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
Compare an instance ofEPPHostUpdateCmdwith this instance.- Overrides:
equalsin classEPPUpdateCmd- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise
-
clone
CloneEPPHostUpdateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPHostUpdateCmd - 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.
-
getName
Gets the host name to update.- Returns:
- Host Name if defined;
nullotherwise.
-
setName
Sets the host name to update.- Parameters:
aName- Host Name
-
getAdd
Gets the items to add to the host.- Returns:
- Object that contains the list of elements to add to the host if
defined;
nullotherwise.
-
setAdd
Sets the items to add to the host.- Parameters:
aAdd- Object that contains the list of elements to add to the host.
-
getRemove
Gets the items to remove from the host.- Returns:
- Object that contains the list of elements to remove from the host
if defined;
nullotherwise.
-
setRemove
Sets the items to remove from the host.- Parameters:
aRemove- Object that contains the list of elements to remove from the host.
-
getChange
Gets the items to change to the host.- Returns:
- Object that contains the list of elements to change to the host if
defined;
nullotherwise.
-
setChange
Sets the items to add to the host.- Parameters:
newChange- Object that contains the list of elements to change to the host.
-