EPP 0.2.5

com.neulevel.epp.core.command
Class EppCommandRenewSvcsub

java.lang.Object
  |
  +--com.neulevel.epp.core.EppEntity
        |
        +--com.neulevel.epp.core.command.EppCommand
              |
              +--com.neulevel.epp.core.command.EppCommandRenew
                    |
                    +--com.neulevel.epp.core.command.EppCommandRenewSvcsub

public class EppCommandRenewSvcsub
extends EppCommandRenew

This EppCommandRenewSvcsub class implements EPP Command Renew entity for EPP Svcsub objects.

Version:
$Revision$
Author:
Ning Zhang ning.zhang@neustar.com

Fields inherited from class com.neulevel.epp.core.command.EppCommandRenew
curExpDate, period
 
Fields inherited from class com.neulevel.epp.core.command.EppCommand
clTRID, creds, unspec
 
Constructor Summary
EppCommandRenewSvcsub(java.lang.String id, java.util.Calendar curExpDate)
          Creates an EppCommandRenewSvcsub object with a default expiration period, specified by the registry
EppCommandRenewSvcsub(java.lang.String id, java.util.Calendar curExpDate, EppPeriod period, java.lang.String xid)
          Creates an EppCommandRenewSvcsub object with a specified expiration period, and a client transaction id associated with the operation
EppCommandRenewSvcsub(java.lang.String id, java.util.Calendar curExpDate, java.lang.String xid)
          Creates an EppCommandRenewSvcsub object with a default expiration period, specified by the registry, and a client transaction id associated with the operation
EppCommandRenewSvcsub(java.lang.String id, java.lang.String xid)
          Creates an EppCommandRenewSvcsub object with a client transaction id associated with the operation.
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppCommandRenewSvcsub object.
 EppAuthInfo getAuthInfo()
          Gets the authorization info for the renew operation
 java.lang.String getId()
          Gets the id of the service subscription object to be renewed
 java.lang.String getUserId()
          Gets the user id that can be used for authorization purpose
 void setAuthInfo(EppAuthInfo authInfo)
          Sets the authorization info for the renew operation
 void setId(java.lang.String id)
          Sets the id of the service subscription object to be renewed
 void setUserId(java.lang.String userid)
          Sets the user id that can be used for authorization purpose
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppCommandRenewSvcsub object into an XML element
 
Methods inherited from class com.neulevel.epp.core.command.EppCommandRenew
getCurrentExpireDate, getPeriod, setCurrentExpireDate, setPeriod, 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

EppCommandRenewSvcsub

public EppCommandRenewSvcsub(java.lang.String id,
                             java.util.Calendar curExpDate)
Creates an EppCommandRenewSvcsub object with a default expiration period, specified by the registry

EppCommandRenewSvcsub

public EppCommandRenewSvcsub(java.lang.String id,
                             java.lang.String xid)
Creates an EppCommandRenewSvcsub object with a client transaction id associated with the operation. The current date of expiration would be the current date.

EppCommandRenewSvcsub

public EppCommandRenewSvcsub(java.lang.String id,
                             java.util.Calendar curExpDate,
                             java.lang.String xid)
Creates an EppCommandRenewSvcsub object with a default expiration period, specified by the registry, and a client transaction id associated with the operation

EppCommandRenewSvcsub

public EppCommandRenewSvcsub(java.lang.String id,
                             java.util.Calendar curExpDate,
                             EppPeriod period,
                             java.lang.String xid)
Creates an EppCommandRenewSvcsub object with a specified expiration period, and a client transaction id associated with the operation
Method Detail

getId

public java.lang.String getId()
Gets the id of the service subscription object to be renewed

setId

public void setId(java.lang.String id)
Sets the id of the service subscription object to be renewed

getUserId

public java.lang.String getUserId()
Gets the user id that can be used for authorization purpose

setUserId

public void setUserId(java.lang.String userid)
Sets the user id that can be used for authorization purpose

getAuthInfo

public EppAuthInfo getAuthInfo()
Gets the authorization info for the renew operation

setAuthInfo

public void setAuthInfo(EppAuthInfo authInfo)
Sets the authorization info for the renew operation

toXML

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

fromXML

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

EPP 0.2.5

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