EPP 0.4.9

com.neulevel.epp.xri
Class EppXriName

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

public class EppXriName
extends EppObject

This EppXriName class implements EPP XRI I-Name objects.

Version:
$Revision: 1.4 $ $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-Name status - clientDeleteProhibited
static java.lang.String STATUS_CLIENT_HOLD
          I-Name status - clientHold
static java.lang.String STATUS_CLIENT_RENEW_PROHIBITED
          I-Name status - clientRenewProhibited
static java.lang.String STATUS_CLIENT_TRANSFER_PROHIBITED
          I-Name status - clientTransferProhibited
static java.lang.String STATUS_CLIENT_UPDATE_PROHIBITED
          I-Name status - clientUpdateProhibited
static java.lang.String STATUS_OK
          I-Name status - ok
static java.lang.String STATUS_PENDING_CREATE
          I-Name status - pendingCreate
static java.lang.String STATUS_PENDING_DELETE
          I-Name status - pendingDelete
static java.lang.String STATUS_PENDING_TRANSFER
          I-Name status - pendingTransfer
static java.lang.String STATUS_PENDING_UPDATE
          I-Name status - pendingUpdate
static java.lang.String STATUS_SERVER_DELETE_PROHIBITED
          I-Name status - serverDeleteProhibited
static java.lang.String STATUS_SERVER_HOLD
          I-Name status - serverHold
static java.lang.String STATUS_SERVER_RENEW_PROHIBITED
          I-Name status - serverRenewProhibited
static java.lang.String STATUS_SERVER_TRANSFER_PROHIBITED
          I-Name status - serverTransferProhibited
static java.lang.String STATUS_SERVER_UPDATE_PROHIBITED
          I-Name 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
EppXriName()
          Creates an EppXriName object
EppXriName(java.lang.String iname)
          Creates an EppXriName object with an XRI i-name
 
Method Summary
static EppCommandCheckXriName check(java.lang.String xid)
          Creates an EppCommandCheckXriName object for checking the existance of EPP XRI I-Name objects in the registry.
static EppCommandDeleteXriName delete(java.lang.String iname, java.lang.String xid)
          Creates an EppCommandDeleteXriName object for deleting an EPP XRI I-Name object from the registry.
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppXriName object.
 java.lang.String getAuthorityId()
          Gets the identifier of the superordinate XRI authority object
 java.lang.String getIName()
          Gets the i-name
 EppPeriod getPeriod()
          Gets registration period for the i-name
static EppCommandInfoXriName info(java.lang.String iname, java.lang.String xid)
          Creates an EppCommandInfoXriName object for querying the details of an EPP XRI I-Name object
static EppCommandRenewXriName renew(java.lang.String iname, java.util.Calendar curExpDate, EppPeriod period, java.lang.String xid)
          Creates an EppCommandRenewXriName object for renewing the registration of an EPP XRI I-Name 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 setIName(java.lang.String iname)
          Sets the i-name
 void setPeriod(EppPeriod period)
          Sets registration period for the i-name
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppXriName object into an XML element
static EppCommandTransferXriName transfer(java.lang.String iname, java.lang.String xid)
          Creates an EppCommandTransferXriName object for transfering an EPP XRI I-Name object in the registry.
static EppCommandUpdateXriName update(java.lang.String iname, java.lang.String xid)
          Creates an EppCommandUpdateXriName object for updating an EPP I-Name 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-Name status - clientDeleteProhibited

See Also:
Constant Field Values

STATUS_CLIENT_HOLD

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

See Also:
Constant Field Values

STATUS_CLIENT_RENEW_PROHIBITED

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

See Also:
Constant Field Values

STATUS_CLIENT_TRANSFER_PROHIBITED

public static final java.lang.String STATUS_CLIENT_TRANSFER_PROHIBITED
I-Name status - clientTransferProhibited

See Also:
Constant Field Values

STATUS_CLIENT_UPDATE_PROHIBITED

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

See Also:
Constant Field Values

STATUS_OK

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

See Also:
Constant Field Values

STATUS_PENDING_CREATE

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

See Also:
Constant Field Values

STATUS_PENDING_DELETE

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

See Also:
Constant Field Values

STATUS_PENDING_TRANSFER

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

See Also:
Constant Field Values

STATUS_PENDING_UPDATE

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

See Also:
Constant Field Values

STATUS_SERVER_DELETE_PROHIBITED

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

See Also:
Constant Field Values

STATUS_SERVER_HOLD

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

See Also:
Constant Field Values

STATUS_SERVER_RENEW_PROHIBITED

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

See Also:
Constant Field Values

STATUS_SERVER_TRANSFER_PROHIBITED

public static final java.lang.String STATUS_SERVER_TRANSFER_PROHIBITED
I-Name status - serverTransferProhibited

See Also:
Constant Field Values

STATUS_SERVER_UPDATE_PROHIBITED

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

See Also:
Constant Field Values
Constructor Detail

EppXriName

public EppXriName()
Creates an EppXriName object


EppXriName

public EppXriName(java.lang.String iname)
Creates an EppXriName object with an XRI i-name

Method Detail

getIName

public java.lang.String getIName()
Gets the i-name


setIName

public void setIName(java.lang.String iname)
Sets the i-name


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


getPeriod

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


setPeriod

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


toXML

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

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

fromXML

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

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

toString

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

delete

public static EppCommandDeleteXriName delete(java.lang.String iname,
                                             java.lang.String xid)
Creates an EppCommandDeleteXriName object for deleting an EPP XRI I-Name object from the registry.

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

info

public static EppCommandInfoXriName info(java.lang.String iname,
                                         java.lang.String xid)
Creates an EppCommandInfoXriName object for querying the details of an EPP XRI I-Name object

Parameters:
iname - the i-name of the XRI i-name object to be queried
xid - the client transaction id associated with the operation

check

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

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

renew

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

Parameters:
iname - the iname of the XRI i-name 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

transfer

public static EppCommandTransferXriName transfer(java.lang.String iname,
                                                 java.lang.String xid)
Creates an EppCommandTransferXriName object for transfering an EPP XRI I-Name object in the registry. The operation type, transfer token, target authority and authorization information associated with the operation should be specified via setOperation, setTransferToken, setTarget, and setAuthInfo method.

Parameters:
iname - the identifier of the XRI authority object to be transferred
xid - the client transaction id associated with the operation

update

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

Parameters:
iname - the i-name of the XRI i-name 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.