com.liberty.rtk.extension.epprtk.example
Class SessionExample

java.lang.Object
  extended by com.liberty.rtk.extension.epprtk.example.SessionExample
Direct Known Subclasses:
AsiaCEDContactSessionExample, AsiaSessionExample, IprSessionExample, MobiSessionExample, OxrsSessionExample, RgpSessionExample, SupplementalDataExample, TrademarkSessionExample

public abstract class SessionExample
extends java.lang.Object

Example code for a typical logical EPP sessions.

Version:
$Revision: 1.1 $ $Date: 2006/03/03 16:33:47 $
Author:
Eric Wang

Field Summary
protected  com.tucows.oxrs.epprtk.rtk.EPPClient epp_client
           
protected  java.lang.String epp_client_id
           
protected  java.lang.String epp_host_name
           
protected  int epp_host_port
           
protected  java.lang.String epp_password
           
 
Constructor Summary
protected SessionExample(java.lang.String[] args)
           
 
Method Summary
protected  void assertNotNull(java.lang.String arg)
           
protected  org.openrtk.idl.epprtk.epp_Command createEPPCommand()
           
protected  java.lang.String getClientTrid()
           
protected  java.lang.String getUsage()
           
protected  org.openrtk.idl.epprtk.epp_AuthInfo getUserInputAuthInfo()
           
protected  void login()
           
protected  void logout()
           
protected  java.lang.String nextArgument()
           
protected abstract  void process()
           
 void session()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

epp_host_name

protected java.lang.String epp_host_name

epp_host_port

protected int epp_host_port

epp_client_id

protected java.lang.String epp_client_id

epp_password

protected java.lang.String epp_password

epp_client

protected com.tucows.oxrs.epprtk.rtk.EPPClient epp_client
Constructor Detail

SessionExample

protected SessionExample(java.lang.String[] args)
Method Detail

nextArgument

protected final java.lang.String nextArgument()

assertNotNull

protected final void assertNotNull(java.lang.String arg)

getUsage

protected java.lang.String getUsage()

session

public void session()

login

protected void login()
              throws org.openrtk.idl.epprtk.epp_Exception,
                     java.io.IOException,
                     org.openrtk.idl.epprtk.epp_XMLException,
                     com.tucows.oxrs.epprtk.rtk.transport.EPPTransportException
Throws:
org.openrtk.idl.epprtk.epp_Exception
java.io.IOException
org.openrtk.idl.epprtk.epp_XMLException
com.tucows.oxrs.epprtk.rtk.transport.EPPTransportException

process

protected abstract void process()
                         throws org.openrtk.idl.epprtk.epp_Exception,
                                java.io.IOException,
                                org.openrtk.idl.epprtk.epp_XMLException
Throws:
org.openrtk.idl.epprtk.epp_Exception
java.io.IOException
org.openrtk.idl.epprtk.epp_XMLException

logout

protected void logout()
               throws org.openrtk.idl.epprtk.epp_Exception,
                      java.io.IOException,
                      org.openrtk.idl.epprtk.epp_XMLException
Throws:
org.openrtk.idl.epprtk.epp_Exception
java.io.IOException
org.openrtk.idl.epprtk.epp_XMLException

getClientTrid

protected java.lang.String getClientTrid()

createEPPCommand

protected org.openrtk.idl.epprtk.epp_Command createEPPCommand()

getUserInputAuthInfo

protected org.openrtk.idl.epprtk.epp_AuthInfo getUserInputAuthInfo()
                                                            throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2001-2003 - Afilias Limited