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,java.io.Serializable,java.lang.Cloneable
public class EPPHostUpdateCmd extends EPPUpdateCmd
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.
EPPReponseis the response associated withEPPHostUpdateCmd.- See Also:
EPPResponse,EPPHostAddRemove, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPHostUpdateCmd.static java.lang.StringELM_NAMEXML 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
Constructors Constructor Description EPPHostUpdateCmd()EPPHostUpdateCmddefault constructor.EPPHostUpdateCmd(java.lang.String aTransId, java.lang.String aName)EPPHostUpdateCmdconstructor.EPPHostUpdateCmd(java.lang.String aTransId, java.lang.String aName, EPPHostAddRemove aAdd, EPPHostAddRemove aRemove, EPPHostAddRemove aChange)EPPHostUpdateCmdconstructor that takes the required attributes as arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPHostUpdateCmd.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPHostUpdateCmdattributes 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 theEPPHostUpdateCmdinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPHostUpdateCmdwith this instance.EPPHostAddRemovegetAdd()Gets the items to add to the host.EPPHostAddRemovegetChange()Gets the items to change to the host.java.lang.StringgetKey()Gets the key for the host object, which is the host name.java.lang.StringgetName()Gets the host name to update.java.lang.StringgetNamespace()Gets the EPP command Namespace associated withEPPHostUpdateCmd.EPPHostAddRemovegetRemove()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.voidsetName(java.lang.String aName)Sets the host name to update.voidsetRemove(EPPHostAddRemove aRemove)Sets the items to remove from the host.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
-
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPHostUpdateCmd.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML Element Name ofEPPHostUpdateCmdroot element.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPHostUpdateCmd
public EPPHostUpdateCmd()
EPPHostUpdateCmddefault constructor. The name is initialized tonull. The name must be set before invokingencode.
-
EPPHostUpdateCmd
public EPPHostUpdateCmd(java.lang.String aTransId, java.lang.String aName)EPPHostUpdateCmdconstructor.- Parameters:
aTransId- Transaction Id associated with the command.aName- Host name to update.
-
EPPHostUpdateCmd
public EPPHostUpdateCmd(java.lang.String aTransId, java.lang.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 Detail
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command Namespace associated withEPPHostUpdateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPHostMapFactory.NS
-
getKey
public java.lang.String getKey()
Gets the key for the host object, which is the host name.- Overrides:
getKeyin classEPPCommand- Returns:
- The host name if set;
nullotherwise.
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPHostUpdateCmdwith this instance.- Overrides:
equalsin classEPPUpdateCmd- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPHostUpdateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPHostUpdateCmd - 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.
-
getName
public java.lang.String getName()
Gets the host name to update.- Returns:
- Host Name if defined;
nullotherwise.
-
setName
public void setName(java.lang.String aName)
Sets the host name to update.- Parameters:
aName- Host Name
-
getAdd
public EPPHostAddRemove 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
public void setAdd(EPPHostAddRemove aAdd)
Sets the items to add to the host.- Parameters:
aAdd- Object that contains the list of elements to add to the host.
-
getRemove
public EPPHostAddRemove 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
public void setRemove(EPPHostAddRemove aRemove)
Sets the items to remove from the host.- Parameters:
aRemove- Object that contains the list of elements to remove from the host.
-
getChange
public EPPHostAddRemove 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
public void setChange(EPPHostAddRemove newChange)
Sets the items to add to the host.- Parameters:
newChange- Object that contains the list of elements to change to the host.
-
-