EPP 0.2.4

com.neulevel.epp.core
Class EppHost

java.lang.Object
  |
  +--com.neulevel.epp.core.EppEntity
        |
        +--com.neulevel.epp.core.EppObject
              |
              +--com.neulevel.epp.core.EppHost

public class EppHost
extends EppObject

This EppHost class implements EPP Host objects.

Version:
$Revision: 1.1 $ $Date: 2001/11/05 20:20:36 $
Author:
Ning Zhang ning.zhang@neustar.com

Field Summary
static java.lang.String STATUS_CLIENT_DELETE_PROHIBITED
          Host status - clientDeleteProhibited
static java.lang.String STATUS_CLIENT_UPDATE_PROHIBITED
          Host status - clientUpdateProhibited
static java.lang.String STATUS_LINKED
          Host status - linked
static java.lang.String STATUS_OK
          Host status - ok
static java.lang.String STATUS_PENDING_DELETE
          Host status - pendingDelete
static java.lang.String STATUS_PENDING_TRANSFER
          Host status - pendingTransfer
static java.lang.String STATUS_SERVER_DELETE_PROHIBITED
          Host status - serverDeleteProhibited
static java.lang.String STATUS_SERVER_UPDATE_PROHIBITED
          Host status - serverUpdateProhibited
 
Fields inherited from class com.neulevel.epp.core.EppObject
authInfo, clID, CONTACT, crDate, crID, DOMAIN, exDate, HOST, roid, status, trDate, upDate, upID
 
Constructor Summary
EppHost()
          Creates an EppHost object
EppHost(java.lang.String name)
          Creates an EppHost object with a domain name
 
Method Summary
 void addAddress(EppIpAddress address)
          Adds an IP address into the list of the IP addresses associated with the host
static EppCommandCheckHost check(java.lang.String xid)
          Creates an EppCommandCheckHost object for checking the existance of EPP Host objects in the registry.
static EppCommandDeleteHost delete(java.lang.String name, java.lang.String xid)
          Creates an EppCommandDeleteHost object for deleting an EPP Host object from the registry.
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppHost object.
 java.util.Vector getAddress()
          Gets the list of IP addresses associated with the host
 java.lang.String getName()
          Gets the name of the host
static EppCommandInfoHost info(java.lang.String name, java.lang.String xid)
          Creates an EppCommandInfoHost object for querying the details of an EPP Host object
 void setName(java.lang.String name)
          Sets the name of the host
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppHost object into an XML element
static EppCommandUpdateHost update(java.lang.String name, java.lang.String xid)
          Creates an EppCommandUpdateHost object for updating an EPP Host object in the registry.
 
Methods inherited from class com.neulevel.epp.core.EppObject
addStatus, create, fromXMLCommon, getAuthInfo, getClientId, getClientIdCreated, getClientIdUpdated, getDateCreated, getDateExpired, getDateTransferred, getDateUpdated, getRoid, getStatus, setAuthInfo, setClientId, setClientIdCreated, setClientIdUpdated, setDateCreated, setDateExpired, setDateTransferred, setDateUpdated, setRoid, toXMLCommon
 
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
 

Field Detail

STATUS_CLIENT_DELETE_PROHIBITED

public static final java.lang.String STATUS_CLIENT_DELETE_PROHIBITED
Host status - clientDeleteProhibited

STATUS_CLIENT_UPDATE_PROHIBITED

public static final java.lang.String STATUS_CLIENT_UPDATE_PROHIBITED
Host status - clientUpdateProhibited

STATUS_LINKED

public static final java.lang.String STATUS_LINKED
Host status - linked

STATUS_OK

public static final java.lang.String STATUS_OK
Host status - ok

STATUS_PENDING_DELETE

public static final java.lang.String STATUS_PENDING_DELETE
Host status - pendingDelete

STATUS_PENDING_TRANSFER

public static final java.lang.String STATUS_PENDING_TRANSFER
Host status - pendingTransfer

STATUS_SERVER_DELETE_PROHIBITED

public static final java.lang.String STATUS_SERVER_DELETE_PROHIBITED
Host status - serverDeleteProhibited

STATUS_SERVER_UPDATE_PROHIBITED

public static final java.lang.String STATUS_SERVER_UPDATE_PROHIBITED
Host status - serverUpdateProhibited
Constructor Detail

EppHost

public EppHost()
Creates an EppHost object

EppHost

public EppHost(java.lang.String name)
Creates an EppHost object with a domain name
Method Detail

getName

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

setName

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

getAddress

public java.util.Vector getAddress()
Gets the list of IP addresses associated with the host

addAddress

public void addAddress(EppIpAddress address)
Adds an IP address into the list of the IP addresses associated with the host

toXML

public org.w3c.dom.Element toXML(org.w3c.dom.Document doc,
                                 java.lang.String tag)
Converts the EppHost object into an XML element
Overrides:
toXML in class EppEntity
Parameters:
doc - the XML Document object
tag - the tag/element name for the EppHost object
Returns:
an Element object

fromXML

public static EppEntity fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppHost object. The caller of this method must make sure that the root node is of the EPP Host type.
Parameters:
root - root node for an EppHost object in XML format
Returns:
an EppHost object, or null if the node is invalid

toString

public java.lang.String toString()
Overrides:
toString in class EppEntity

delete

public static EppCommandDeleteHost delete(java.lang.String name,
                                          java.lang.String xid)
Creates an EppCommandDeleteHost object for deleting an EPP Host object from the registry.
Parameters:
name - the name of the host object to be deleted
xid - the client transaction id associated with the operation

info

public static EppCommandInfoHost info(java.lang.String name,
                                      java.lang.String xid)
Creates an EppCommandInfoHost object for querying the details of an EPP Host object
Parameters:
name - the name of the host object to be queried
xid - the client transaction id associated with the operation

check

public static EppCommandCheckHost check(java.lang.String xid)
Creates an EppCommandCheckHost object for checking the existance of EPP Host objects in the registry. Names of EPP Host objects can be added via the add or addName methods.
Parameters:
xid - the client transaction id associated with the operation

update

public static EppCommandUpdateHost update(java.lang.String name,
                                          java.lang.String xid)
Creates an EppCommandUpdateHost object for updating an EPP Host object in the registry. The actual update information should be specified via the various methods defined for the EppCommandUpdateHost object.
Parameters:
name - the name of the host object to be updated
xid - the client transaction id associated with the operation

EPP 0.2.4

Copyright © 2001 NeuStar, Inc. All Rights Reserved.