EPP 0.2.3

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$ $Date$
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
 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
 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

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.3

Copyright © 2001 NeuStar, Inc. All Rights Reserved.