EPP 0.2.6

com.neulevel.epp.core.command
Class EppCommandUpdateHost

java.lang.Object
  extended bycom.neulevel.epp.core.EppEntity
      extended bycom.neulevel.epp.core.command.EppCommand
          extended bycom.neulevel.epp.core.command.EppCommandUpdate
              extended bycom.neulevel.epp.core.command.EppCommandUpdateHost

public class EppCommandUpdateHost
extends EppCommandUpdate

This EppCommandUpdateHost class implements EPP Command Update entity for EPP Host objects.

Version:
$Revision: 1.1.1.1 $ $Date: 2005/12/06 20:11:35 $
Author:
Ning Zhang ning.zhang@neustar.com

Field Summary
 
Fields inherited from class com.neulevel.epp.core.command.EppCommandUpdate
statusAdded, statusRemoved
 
Fields inherited from class com.neulevel.epp.core.command.EppCommand
clTRID, creds, unspec
 
Constructor Summary
EppCommandUpdateHost(java.lang.String name)
          Creates an EppCommandUpdateHost given the name of the host
EppCommandUpdateHost(java.lang.String name, java.lang.String xid)
          Creates an EppCommandUpdateHost given the name of the host with a client transaction id associated with operation
 
Method Summary
 void addAddress(EppIpAddress address)
          Adds a new IP address to be associated with the host
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppCommandUpdateHost object.
 java.util.Vector getAddressAdded()
          Gets the list of new IP addresses to be added to the host
 java.util.Vector getAddressRemoved()
          Gets the list of old IP addresses to be removed from the host
 java.lang.String getName()
          Gets the name of the host to be updated
 java.lang.String getNewName()
          Gets the new name for the host, or null if the name of the the host is not to be changed
 void removeAddress(EppIpAddress address)
           
 void setName(java.lang.String name)
          Sets the name of the host to be updated
 void setNewName(java.lang.String name)
          Sets the new name for the host if the name of the the host needs to be changed
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppCommandUpdateHost object into an XML element
 
Methods inherited from class com.neulevel.epp.core.command.EppCommandUpdate
addStatus, addStatus, getAddedStatus, getRemovedStatus, removeStatus, removeStatus, statusFromXML, statusToXML, toString
 
Methods inherited from class com.neulevel.epp.core.command.EppCommand
check, create, delete, getClientTransactionId, getCreds, getUnspec, info, renew, setClientTransactionId, setCreds, setUnspec, toXMLCommon, toXMLCommon, toXMLCommon, toXMLCommon, transfer, update
 
Methods inherited from class com.neulevel.epp.core.EppEntity
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EppCommandUpdateHost

public EppCommandUpdateHost(java.lang.String name)
Creates an EppCommandUpdateHost given the name of the host


EppCommandUpdateHost

public EppCommandUpdateHost(java.lang.String name,
                            java.lang.String xid)
Creates an EppCommandUpdateHost given the name of the host with a client transaction id associated with operation

Method Detail

getName

public java.lang.String getName()
Gets the name of the host to be updated


setName

public void setName(java.lang.String name)
Sets the name of the host to be updated


getAddressAdded

public java.util.Vector getAddressAdded()
Gets the list of new IP addresses to be added to the host


addAddress

public void addAddress(EppIpAddress address)
Adds a new IP address to be associated with the host


getAddressRemoved

public java.util.Vector getAddressRemoved()
Gets the list of old IP addresses to be removed from the host


removeAddress

public void removeAddress(EppIpAddress address)

getNewName

public java.lang.String getNewName()
Gets the new name for the host, or null if the name of the the host is not to be changed


setNewName

public void setNewName(java.lang.String name)
Sets the new name for the host if the name of the the host needs to be changed


toXML

public org.w3c.dom.Element toXML(org.w3c.dom.Document doc,
                                 java.lang.String tag)
Converts the EppCommandUpdateHost object into an XML element

Specified by:
toXML in class EppEntity
Parameters:
doc - the XML Document object
tag - the tag/element name for the EppCommandUpdateHost object
Returns:
an Element object

fromXML

public static EppEntity fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppCommandUpdateHost object. The caller of this method must make sure that the root node is of an EPP Command Update entity for an EPP Host object.

Parameters:
root - root node for an EppCommandUpdate object in XML format
Returns:
an EppCommandUpdate object, or null if the node is invalid

EPP 0.2.6

Copyright © 2001-2002 NeuLevel, Inc. All Rights Reserved.