EPP 0.2.5

com.neulevel.epp.transport.tcp
Class EppSessionTcp

java.lang.Object
  |
  +--com.neulevel.epp.transport.EppSession
        |
        +--com.neulevel.epp.transport.tcp.EppSessionTcp

public class EppSessionTcp
extends EppSession

This EppSessionTcp is designed to handle a channel connection to the EPP server via TCP/TLS.

Version:
$Revision: 1.1 $ $Date: 2001/11/05 20:20:36 $
Author:
Ning Zhang ning.zhang@neustar.com

Fields inherited from class com.neulevel.epp.transport.EppSession
CLIENT_AUTH, KM_ALGORITHM, KM_PROVIDER, KS_FORMAT, KS_KEYPASS, KS_NAME, KS_PROVIDER, KS_STOREPASS, KS_TYPE, PK_CIPHER_SUITE, PK_PRIVATE_KEY, PK_PRIVATE_PASS, PK_PRIVATE_TYPE, PK_PUBLIC_KEY, PK_TRUSTED_CERTS, TM_ALGORITHM, TM_PROVIDER, TS_FORMAT, TS_NAME, TS_PROVIDER, TS_STOREPASS, TS_TYPE
 
Constructor Summary
EppSessionTcp()
          Creates an EppSessionTcp object, which will use TLS as the transport layer security protocol.
EppSessionTcp(boolean useTLS)
          Creates an EppSessionTcp object, given a flag indicating if TLS should be used as the transport layer security protocol.
 
Method Summary
 void close()
          Closes the EPP Session over TCP/TLS
 EppGreeting connect(java.lang.String host, int port)
          Connects to the EPP Server and establishs an EPP session over TCP/TLS
 EppChannel getChannel()
          Allocates an EPP Channel over TCP/TLS
 java.net.Socket getSocket()
          Gets the socket associated with the EPP Session
 EppGreeting hello()
          Sends an EPP Hello message to the EPP Server and returns back with an EppGreeting object
 void init(java.lang.Object object)
          Initializes the run-time parameters related to an EPP Session.
 
Methods inherited from class com.neulevel.epp.transport.EppSession
getException, getMessage, setException, setMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EppSessionTcp

public EppSessionTcp()
Creates an EppSessionTcp object, which will use TLS as the transport layer security protocol.

EppSessionTcp

public EppSessionTcp(boolean useTLS)
Creates an EppSessionTcp object, given a flag indicating if TLS should be used as the transport layer security protocol.
Method Detail

init

public void init(java.lang.Object object)
Initializes the run-time parameters related to an EPP Session. This method must be called before the EPP Session is started. The configuration object can be a Properties object if the implementation choose to use Java Property file, or an Element object, if the configuration file is in XML format, or an String that represents the name of the configuration file in any format.
Overrides:
init in class EppSession
Parameters:
object - - the configuration object for setting up run-time parameters related to the EPP Session

connect

public EppGreeting connect(java.lang.String host,
                           int port)
Connects to the EPP Server and establishs an EPP session over TCP/TLS
Overrides:
connect in class EppSession
Parameters:
host - the host name of the EPP Server to be connected
port - the port number of the EPP Server to be connected
Returns:
an EppGreeting object returned by the EPP server if the connection is successfully established, or null if there is any error

close

public void close()
Closes the EPP Session over TCP/TLS
Overrides:
close in class EppSession

getChannel

public EppChannel getChannel()
Allocates an EPP Channel over TCP/TLS
Overrides:
getChannel in class EppSession
Returns:
an EppChannel object, or null if the EPP Channel cannot be allocated

hello

public EppGreeting hello()
Sends an EPP Hello message to the EPP Server and returns back with an EppGreeting object
Overrides:
hello in class EppSession
Returns:
an EppGreeting returned by the EPP Server, or null if there is any error

getSocket

public java.net.Socket getSocket()
Gets the socket associated with the EPP Session

EPP 0.2.5

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