EPP 0.4.9

com.neulevel.epp.xri
Class EppXriService

java.lang.Object
  extended by com.neulevel.epp.core.EppEntity
      extended by com.neulevel.epp.core.EppObject
          extended by com.neulevel.epp.xri.EppXriService

public class EppXriService
extends EppObject

This EppXriService class implements EPP XRI I-Service objects.

Version:
$Revision: 1.3 $ $Date: 2006/03/01 01:35:38 $
Author:
Ning Zhang ning.zhang@neustar.com

Field Summary
static java.lang.String STATUS_CLIENT_DELETE_PROHIBITED
          I-Service status - clientDeleteProhibited
static java.lang.String STATUS_CLIENT_HOLD
          I-Service status - clientHold
static java.lang.String STATUS_CLIENT_RENEW_PROHIBITED
          I-Service status - clientRenewProhibited
static java.lang.String STATUS_CLIENT_UPDATE_PROHIBITED
          I-Service status - clientUpdateProhibited
static java.lang.String STATUS_OK
          I-Service status - ok
static java.lang.String STATUS_PENDING_CREATE
          I-Service status - pendingCreate
static java.lang.String STATUS_PENDING_DELETE
          I-Service status - pendingDelete
static java.lang.String STATUS_PENDING_TRANSFER
          I-Service status - pendingTransfer
static java.lang.String STATUS_PENDING_UPDATE
          I-Service status - pendingUpdate
static java.lang.String STATUS_SERVER_DELETE_PROHIBITED
          I-Service status - serverDeleteProhibited
static java.lang.String STATUS_SERVER_HOLD
          I-Service status - serverHold
static java.lang.String STATUS_SERVER_RENEW_PROHIBITED
          I-Service status - serverRenewProhibited
static java.lang.String STATUS_SERVER_UPDATE_PROHIBITED
          I-Service status - serverUpdateProhibited
 
Fields inherited from class com.neulevel.epp.core.EppObject
authInfo, clID, CONTACT, crDate, crID, DOMAIN, exDate, HOST, roid, status, SVCSUB, trDate, upDate, upID, XRI_AUTHORITY, XRI_INAME, XRI_INUMBER, XRI_ISERVICE
 
Constructor Summary
EppXriService()
          Creates an EppXriService object
EppXriService(java.lang.String id)
          Creates an EppXriService object with an XRI i-service identifier
 
Method Summary
 void addURI(java.lang.String uri)
          Adds a URL to the list of URIs associated with the XRI i-service object
static EppCommandCheckXriService check(java.lang.String xid)
          Creates an EppCommandCheckXriService object for checking the existance of EPP XRI I-Service objects in the registry.
static EppCommandDeleteXriService delete(java.lang.String id, java.lang.String xid)
          Creates an EppCommandDeleteXriService object for deleting an EPP XRI I-Service object from the registry.
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppXriService object.
 java.lang.String getAuthorityId()
          Gets the identifier of the superordinate XRI authority object
 java.lang.String getId()
          Gets the i-service identifier
 EppPeriod getPeriod()
          Gets registration period for the i-service object
 java.lang.String getType()
          Gets the i-service type
 java.util.Vector getURI()
          Gets the list of URIs associated with the XRI i-service object
static EppCommandInfoXriService info(java.lang.String id, java.lang.String xid)
          Creates an EppCommandInfoXriService object for querying the details of an EPP XRI I-Service object
static EppCommandRenewXriService renew(java.lang.String id, java.util.Calendar curExpDate, EppPeriod period, java.lang.String xid)
          Creates an EppCommandRenewXriService object for renewing the registration of an EPP XRI I-Service object in the registry.
 void setAuthority(java.lang.String authId, EppAuthInfo authInfo)
          Sets the identifier of the superorindate XRI authority object, and authInfo associated with the authority, if any
 void setAuthorityId(java.lang.String authId)
          Sets the identifier of the superordinate XRI authority object
 void setId(java.lang.String id)
          Sets the i-service identifier
 void setPeriod(EppPeriod period)
          Sets registration period for the i-service object
 void setType(java.lang.String type)
          Sets the i-service type
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppXriService object into an XML element
static EppCommandUpdateXriService update(java.lang.String id, java.lang.String xid)
          Creates an EppCommandUpdateXriService object for updating an EPP I-Service 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
I-Service status - clientDeleteProhibited

See Also:
Constant Field Values

STATUS_CLIENT_HOLD

public static final java.lang.String STATUS_CLIENT_HOLD
I-Service status - clientHold

See Also:
Constant Field Values

STATUS_CLIENT_RENEW_PROHIBITED

public static final java.lang.String STATUS_CLIENT_RENEW_PROHIBITED
I-Service status - clientRenewProhibited

See Also:
Constant Field Values

STATUS_CLIENT_UPDATE_PROHIBITED

public static final java.lang.String STATUS_CLIENT_UPDATE_PROHIBITED
I-Service status - clientUpdateProhibited

See Also:
Constant Field Values

STATUS_OK

public static final java.lang.String STATUS_OK
I-Service status - ok

See Also:
Constant Field Values

STATUS_PENDING_CREATE

public static final java.lang.String STATUS_PENDING_CREATE
I-Service status - pendingCreate

See Also:
Constant Field Values

STATUS_PENDING_DELETE

public static final java.lang.String STATUS_PENDING_DELETE
I-Service status - pendingDelete

See Also:
Constant Field Values

STATUS_PENDING_TRANSFER

public static final java.lang.String STATUS_PENDING_TRANSFER
I-Service status - pendingTransfer

See Also:
Constant Field Values

STATUS_PENDING_UPDATE

public static final java.lang.String STATUS_PENDING_UPDATE
I-Service status - pendingUpdate

See Also:
Constant Field Values

STATUS_SERVER_DELETE_PROHIBITED

public static final java.lang.String STATUS_SERVER_DELETE_PROHIBITED
I-Service status - serverDeleteProhibited

See Also:
Constant Field Values

STATUS_SERVER_HOLD

public static final java.lang.String STATUS_SERVER_HOLD
I-Service status - serverHold

See Also:
Constant Field Values

STATUS_SERVER_RENEW_PROHIBITED

public static final java.lang.String STATUS_SERVER_RENEW_PROHIBITED
I-Service status - serverRenewProhibited

See Also:
Constant Field Values

STATUS_SERVER_UPDATE_PROHIBITED

public static final java.lang.String STATUS_SERVER_UPDATE_PROHIBITED
I-Service status - serverUpdateProhibited

See Also:
Constant Field Values
Constructor Detail

EppXriService

public EppXriService()
Creates an EppXriService object


EppXriService

public EppXriService(java.lang.String id)
Creates an EppXriService object with an XRI i-service identifier

Method Detail

getId

public java.lang.String getId()
Gets the i-service identifier


setId

public void setId(java.lang.String id)
Sets the i-service identifier


getType

public java.lang.String getType()
Gets the i-service type


setType

public void setType(java.lang.String type)
Sets the i-service type


setAuthority

public void setAuthority(java.lang.String authId,
                         EppAuthInfo authInfo)
Sets the identifier of the superorindate XRI authority object, and authInfo associated with the authority, if any


getAuthorityId

public java.lang.String getAuthorityId()
Gets the identifier of the superordinate XRI authority object


setAuthorityId

public void setAuthorityId(java.lang.String authId)
Sets the identifier of the superordinate XRI authority object


getURI

public java.util.Vector getURI()
Gets the list of URIs associated with the XRI i-service object


addURI

public void addURI(java.lang.String uri)
Adds a URL to the list of URIs associated with the XRI i-service object


getPeriod

public EppPeriod getPeriod()
Gets registration period for the i-service object


setPeriod

public void setPeriod(EppPeriod period)
Sets registration period for the i-service object


toXML

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

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

fromXML

public static EppEntity fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppXriService object. The caller of this method must make sure that the root node is of the EPP I-Service type.

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

toString

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

delete

public static EppCommandDeleteXriService delete(java.lang.String id,
                                                java.lang.String xid)
Creates an EppCommandDeleteXriService object for deleting an EPP XRI I-Service object from the registry.

Parameters:
id - the identifier of the XRI i-service object to be deleted
xid - the client transaction id associated with the operation

info

public static EppCommandInfoXriService info(java.lang.String id,
                                            java.lang.String xid)
Creates an EppCommandInfoXriService object for querying the details of an EPP XRI I-Service object

Parameters:
id - the identifier of the XRI i-service object to be created
xid - the client transaction id associated with the operation

check

public static EppCommandCheckXriService check(java.lang.String xid)
Creates an EppCommandCheckXriService object for checking the existance of EPP XRI I-Service objects in the registry. Identifiers of EPP XRI I-Service objects can be added via the add or addIService methods.

Parameters:
xid - the client transaction id associated with the operation

renew

public static EppCommandRenewXriService renew(java.lang.String id,
                                              java.util.Calendar curExpDate,
                                              EppPeriod period,
                                              java.lang.String xid)
Creates an EppCommandRenewXriService object for renewing the registration of an EPP XRI I-Service object in the registry.

Parameters:
id - the identifier of the XRI i-service object to be renewed
curExpDate - the current expiration date of the svcsub object
period - the new registration period of the svcsub object, or null if using the value specified by the registry
xid - the client transaction id associated with the operation

update

public static EppCommandUpdateXriService update(java.lang.String id,
                                                java.lang.String xid)
Creates an EppCommandUpdateXriService object for updating an EPP I-Service object in the registry. The actual update information should be specified via the various methods defined for the EppCommandUpdateXriService object.

Parameters:
id - the identifier of the XRI i-service object to be updated
xid - the client transaction id associated with the operation

EPP 0.4.9

Copyright © 2001-2006 NeuStar, Inc. All Rights Reserved.