class EppHost

This EppHost class implements EPP Host objects.

Inheritance:


Public Fields

[more]static const char* STATUS_CLIENT_DELETE_PROHIBITED
Host status - clientDeleteProhibited
[more]static const char* STATUS_CLIENT_UPDATE_PROHIBITED
Host status - clientUpdateProhibited
[more]static const char* STATUS_LINKED
Host status - linked
[more]static const char* STATUS_OK
Host status - ok
[more]static const char* STATUS_PENDING_DELETE
Host status - pendingDelete
[more]static const char* STATUS_PENDING_TRANSFER
Host status - pendingTransfer
[more]static const char* STATUS_SERVER_DELETE_PROHIBITED
Host status - serverDeleteProhibited
[more]static const char* STATUS_SERVER_UPDATE_PROHIBITED
Host status - serverUpdateProhibited

Public Methods

[more] EppHost()
Creates an EppHost object
[more] EppHost( DOMString name )
Creates an EppHost object with a domain name
[more] ~EppHost()
Destructor
[more]virtual int getEntityType()
Returns the run-time type of an EppEntity object
[more]DOMString getName()
Gets the name of the host
[more]void setName( DOMString name )
Sets the name of the host
[more]ValueVectorOf<EppIpAddress> * getAddress()
Gets the list of IP addresses associated with the host
[more]void addAddress( EppIpAddress address )
Adds an IP address into the list of the IP addresses associated with the host
[more]DOM_Element toXML( DOM_Document& doc, const DOMString& tag )
Converts the EppHost object into an XML element
[more]static EppHost* fromXML( const DOM_Node& root )
Converts an XML element into an EppHost object.
[more]static EppCommandDeleteHost remove( DOMString name, DOMString xid )
Creates an EppCommandDeleteHost object for deleting an EPP Host object from the registry.
[more]static EppCommandInfoHost info( DOMString name, DOMString xid )
Creates an EppCommandInfoHost object for querying the details of an EPP Host object
[more]static EppCommandCheckHost check( DOMString xid )
Creates an EppCommandCheckHost object for checking the existance of EPP Host objects in the registry.
[more]static EppCommandUpdateHost update( DOMString name, DOMString xid )
Creates an EppCommandUpdateHost object for updating an EPP Host object in the registry.


Inherited from EppObject:

Public Fields

ostatic const int CONTACT
ostatic const int DOMAIN
ostatic const int HOST

Public Methods

oDOMString getRoid()
ovoid setRoid( DOMString roid )
oDOMString getClientId()
ovoid setClientId( DOMString clientId )
oDOMString getClientIdCreated()
ovoid setClientIdCreated( DOMString clientId )
otime_t getDateCreated()
ovoid setDateCreated( time_t cal )
oDOMString getClientIdUpdated()
ovoid setClientIdUpdated( DOMString clientId )
otime_t getDateUpdated()
ovoid setDateUpdated( time_t cal )
otime_t getDateExpired()
ovoid setDateExpired( time_t cal )
otime_t getDateTransferred()
ovoid setDateTransferred( time_t cal )
oEppAuthInfo* getAuthInfo()
ovoid setAuthInfo( EppAuthInfo authInfo )
oValueVectorOf<EppStatus> * getStatus()
ovoid addStatus( EppStatus status )
ostatic EppCommandCreate create( EppObject* object, DOMString xid )

Protected Fields

oDOMString roid
oValueVectorOf<EppStatus> * status
oDOMString clID
oDOMString crID
otime_t crDate
oDOMString upID
otime_t upDate
otime_t exDate
otime_t trDate
oEppAuthInfo* authInfo

Protected Methods

ovoid fromXMLCommon( const DOM_Node& node, const DOMString name )
ovoid toXMLCommon( DOM_Document& doc, DOM_Element& body )
ovoid freeCommon()


Inherited from EppEntity:

Public Methods

obool instanceOf( const int type )
ovirtual DOMString toString()

Protected Methods

oDOMString toString( const DOMString &tag )


Documentation

This EppHost class implements EPP Host objects.

ostatic const char* STATUS_CLIENT_DELETE_PROHIBITED
Host status - clientDeleteProhibited

ostatic const char* STATUS_CLIENT_UPDATE_PROHIBITED
Host status - clientUpdateProhibited

ostatic const char* STATUS_LINKED
Host status - linked

ostatic const char* STATUS_OK
Host status - ok

ostatic const char* STATUS_PENDING_DELETE
Host status - pendingDelete

ostatic const char* STATUS_PENDING_TRANSFER
Host status - pendingTransfer

ostatic const char* STATUS_SERVER_DELETE_PROHIBITED
Host status - serverDeleteProhibited

ostatic const char* STATUS_SERVER_UPDATE_PROHIBITED
Host status - serverUpdateProhibited

o EppHost()
Creates an EppHost object

o EppHost( DOMString name )
Creates an EppHost object with a domain name

o ~EppHost()
Destructor

ovirtual int getEntityType()
Returns the run-time type of an EppEntity object

oDOMString getName()
Gets the name of the host

ovoid setName( DOMString name )
Sets the name of the host

oValueVectorOf<EppIpAddress> * getAddress()
Gets the list of IP addresses associated with the host

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

oDOM_Element toXML( DOM_Document& doc, const DOMString& tag )
Converts the EppHost object into an XML element

Parameters:
doc - the XML DOM_Element object
tag - the tag/element name for the EppHost object
Returns:
an DOM_Element object

ostatic EppHost* fromXML( const 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

ostatic EppCommandDeleteHost remove( DOMString name, DOMString 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

ostatic EppCommandInfoHost info( DOMString name, DOMString 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

ostatic EppCommandCheckHost check( DOMString 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

ostatic EppCommandUpdateHost update( DOMString name, DOMString 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


This class has no child classes.
Author:
Ning Zhang ning.zhang@neustar.com
Version:
$Revision: 1.1 $ $Date: 2001/11/05 20:20:36 $

Alphabetic index HTML hierarchy of classes or Java


Copyright © 2001 NeuStar, Inc. All Rights Reserved.