EPP 0.2.5

com.neulevel.epp.transport.tcp
Class EppChannelTcp

java.lang.Object
  |
  +--com.neulevel.epp.transport.EppChannel
        |
        +--com.neulevel.epp.transport.tcp.EppChannelTcp

public class EppChannelTcp
extends EppChannel

This EppChannelTcp is designed to handle a session connection to the EPP server via TCP/TLS.

Version:
$Revision: 1.2 $ $Date: 2001/11/29 20:47:32 $
Author:
Ning Zhang ning.zhang@neustar.com

Fields inherited from class com.neulevel.epp.transport.EppChannel
status, STATUS_CLOSED, STATUS_INIT, STATUS_START
 
Constructor Summary
EppChannelTcp(EppSessionTcp session)
          Creates an EppChannelTcp object
 
Method Summary
 long getLastNetTransaction()
          Gets the timestamp of last network transaction, obtained via System.currentTimeMillis().
 java.net.Socket getSocket()
          Gets the socket associated with the EPP Channel
 EppGreeting hello()
          Sends an EPP Hello message to the EPP Server and returns back with an EppGreeting object
 boolean isValid()
          Returns the boolean flag indicating if an IOException has been caught during a network transaction, or the socket associated with the channel is not valid.
 EppResponse send(EppCommand command)
          Sends an EppCommand object to the EPP Server and gets an EppResponse object back from the EPP Server
 EppResponse start(EppCommandLogin login)
          Starts up the EppChannel by sending an EppCommandLogin object to the EPP Server
 EppResponse terminate()
          Terminates an EPP Channel
 
Methods inherited from class com.neulevel.epp.transport.EppChannel
getException, getMessage, getSession, setException, setMessage, setSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EppChannelTcp

public EppChannelTcp(EppSessionTcp session)
Creates an EppChannelTcp object
Parameters:
session - the EppSessionTcp object in which an EPP Channel is created
Method Detail

getSocket

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

getLastNetTransaction

public long getLastNetTransaction()
Gets the timestamp of last network transaction, obtained via System.currentTimeMillis(). If the value returned is 0, no transaction has been performed.

isValid

public boolean isValid()
Returns the boolean flag indicating if an IOException has been caught during a network transaction, or the socket associated with the channel is not valid. If the return value is false, the channel as well as the session is no longer valid,

send

public EppResponse send(EppCommand command)
Sends an EppCommand object to the EPP Server and gets an EppResponse object back from the EPP Server
Overrides:
send in class EppChannel
Parameters:
command - the command to be send to the EPP server
Returns:
an EppResponse object, or null if there is error with the connection to the server

start

public EppResponse start(EppCommandLogin login)
Starts up the EppChannel by sending an EppCommandLogin object to the EPP Server
Overrides:
start in class EppChannel
Parameters:
login - the EppCommandLogin object for establisging the EPP Channel
Returns:
an EppResponse object indicating if the channel is started successfully or not

hello

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

terminate

public EppResponse terminate()
Terminates an EPP Channel
Overrides:
terminate in class EppChannel
Returns:
an EppResponse object indicating if the channel is terminated successfully or not

EPP 0.2.5

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