EPP 0.2.5

com.neulevel.epp.core.command
Class EppCommandTransferSvcsub

java.lang.Object
  |
  +--com.neulevel.epp.core.EppEntity
        |
        +--com.neulevel.epp.core.command.EppCommand
              |
              +--com.neulevel.epp.core.command.EppCommandTransfer
                    |
                    +--com.neulevel.epp.core.command.EppCommandTransferSvcsub

public class EppCommandTransferSvcsub
extends EppCommandTransfer

This EppCommandTransferSvcsub class implements EPP Command Transfer entity for EPP Svcsub objects.

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

Fields inherited from class com.neulevel.epp.core.command.EppCommandTransfer
authInfo, op, OPTYPE_APPROVE, OPTYPE_CANCEL, OPTYPE_QUERY, OPTYPE_REJECT, OPTYPE_REQUEST
 
Fields inherited from class com.neulevel.epp.core.command.EppCommand
clTRID, creds, unspec
 
Constructor Summary
EppCommandTransferSvcsub(java.lang.String id)
          Creates an EppCommandTransferSvcsub object for transfering a service subscription object based on its id
EppCommandTransferSvcsub(java.lang.String id, EppPeriod period)
          Creates an EppCommandTransferSvcsub object for transfering a service subscription object based on its id and with an extended expiration period
EppCommandTransferSvcsub(java.lang.String id, EppPeriod period, java.lang.String xid)
          Creates an EppCommandTransferSvcsub object for transfering a service subscription object based on its id and with an extended expiration period and a client transaction id associated with operation
EppCommandTransferSvcsub(java.lang.String id, java.lang.String xid)
          Creates an EppCommandTransferSvcsub object for transfering a service subscription object based on its id, given a client transaction id associated with operation
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppCommandTransferSvcsub object.
 java.lang.String getId()
          Gets the id of the service subscription object to be transferred
 EppPeriod getPeriod()
          Gets the registration period of the service subscription object to be transferred
 java.lang.String getUserId()
          Gets the user id that can be used for authorization purpose
 void setId(java.lang.String Id)
          Sets the id of the service subscription object to be transferred
 void setPeriod(EppPeriod period)
          Sets the registration period of the service subscription object to be transferred
 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 EppCommandTransferSvcsub object into an XML element
 org.w3c.dom.Element toXMLPoll(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppCommandTransferSvcsub object into an XML element for an EppPollable object
 
Methods inherited from class com.neulevel.epp.core.command.EppCommandTransfer
fromXMLPoll, getAuthInfo, getOperation, setAuthInfo, setOperation, 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

EppCommandTransferSvcsub

public EppCommandTransferSvcsub(java.lang.String id)
Creates an EppCommandTransferSvcsub object for transfering a service subscription object based on its id

EppCommandTransferSvcsub

public EppCommandTransferSvcsub(java.lang.String id,
                                java.lang.String xid)
Creates an EppCommandTransferSvcsub object for transfering a service subscription object based on its id, given a client transaction id associated with operation

EppCommandTransferSvcsub

public EppCommandTransferSvcsub(java.lang.String id,
                                EppPeriod period)
Creates an EppCommandTransferSvcsub object for transfering a service subscription object based on its id and with an extended expiration period

EppCommandTransferSvcsub

public EppCommandTransferSvcsub(java.lang.String id,
                                EppPeriod period,
                                java.lang.String xid)
Creates an EppCommandTransferSvcsub object for transfering a service subscription object based on its id and with an extended expiration period and a client transaction id associated with operation
Method Detail

getId

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

setId

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

getPeriod

public EppPeriod getPeriod()
Gets the registration period of the service subscription object to be transferred

setPeriod

public void setPeriod(EppPeriod period)
Sets the registration period of the service subscription object to be transferred

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

toXMLPoll

public org.w3c.dom.Element toXMLPoll(org.w3c.dom.Document doc,
                                     java.lang.String tag)
Converts the EppCommandTransferSvcsub object into an XML element for an EppPollable object
Parameters:
doc - the XML Document object
tag - the tag/element name for the EppCommandTransferSvcsub object
Returns:
an Element object

toXML

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

fromXML

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

EPP 0.2.5

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