class EppChannel

This EppChannel class is designed to handle a channel connected to the EPP server.

Inheritance:


Public Methods

[more] EppChannel()
Creates an EppChannel object
[more]virtual ~EppChannel()
Destructor
[more]EppSession* getSession()
Gets the EppSession object associated with the EPP Channel
[more]void setSession( EppSession* session )
Sets the EppSession object associated with the EPP Channel
[more]const char* getMessage()
Gets the last message received for the EPP Channel
[more]void setMessage( const char* message )
Sets the current message received for the EPP Channel
[more]const char* getException()
Gets the last exception received for the EPP Channel
[more]void setException( const char* e )
Sets the current exception received for the EPP Channel
[more]virtual EppResponse* start( EppCommandLogin& login ) = 0
Starts up the EppChannel by sending an EppCommandLogin object to the EPP Server
[more]virtual EppGreeting* hello() = 0
Sends an EPP Hello message to the EPP Server and returns back with an EppGreeting object
[more]virtual EppResponse* terminate() = 0
Terminates an EPP Channel
[more]virtual EppResponse* send( EppCommand& command ) = 0
Sends an EppCommand object to the EPP Server and gets an EppResponse object back from the EPP Server

Protected Fields

[more]static const int STATUS_INIT
The status value when the EppChannel object is created, but not started
[more]static const int STATUS_START
The status value when the EppChannel object is started after sucessfully calling the start method
[more]static const int STATUS_CLOSED
The status value when the EppChannel object is closed atfer successfully calling the close method
[more]int status
The status of the EppChannel object.


Documentation

This EppChannel class is designed to handle a channel connected to the EPP server.

ostatic const int STATUS_INIT
The status value when the EppChannel object is created, but not started

ostatic const int STATUS_START
The status value when the EppChannel object is started after sucessfully calling the start method

ostatic const int STATUS_CLOSED
The status value when the EppChannel object is closed atfer successfully calling the close method

oint status
The status of the EppChannel object. It is used for recording the status transition from STATUS_INIT to STATUS_START, and finally to STATUS_CLOSED

o EppChannel()
Creates an EppChannel object

ovirtual ~EppChannel()
Destructor

oEppSession* getSession()
Gets the EppSession object associated with the EPP Channel

ovoid setSession( EppSession* session )
Sets the EppSession object associated with the EPP Channel

Parameters:
session - the EppSession used for creating the channel

oconst char* getMessage()
Gets the last message received for the EPP Channel

ovoid setMessage( const char* message )
Sets the current message received for the EPP Channel

oconst char* getException()
Gets the last exception received for the EPP Channel

ovoid setException( const char* e )
Sets the current exception received for the EPP Channel

ovirtual EppResponse* start( EppCommandLogin& login ) = 0
Starts up the EppChannel by sending an EppCommandLogin object to the EPP Server

Parameters:
login - the EppCommandLogin object for establisging the EPP Channel
Returns:
an EppResponse object indicating if the channel is started successfully or not

ovirtual EppGreeting* hello() = 0
Sends an EPP Hello message to the EPP Server and returns back with an EppGreeting object

Returns:
an EppGreeting returned by the EPP Server, or null if there is any error

ovirtual EppResponse* terminate() = 0
Terminates an EPP Channel

Returns:
an EppResponse object indicating if the channel is terminated successfully or not

ovirtual EppResponse* send( EppCommand& command ) = 0
Sends an EppCommand object to the EPP Server and gets an EppResponse object back from the EPP Server

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
Note: If there is any syntax error or missing required parameters in the command, the command will not be sent out, and a EPP Response object will be returned indicating the errors. As there is no EPP server action involved, the transaction id for both the client and the server are the same value copied from the command itself.
If there is any syntax error or missing required parameters from the response data from the EPP Server, the EPP Response would include an EppUnspec object with the XML data returned from the server as its value.
If there is any error with the connection to to server, the getException should be called for obtaining the details of the error.


Direct child classes:
EppChannelTcp
Author:
Ning Zhang ning.zhang@neustar.com
Version:
$Revision: 1.1.1.1 $ $Date: 2005/12/06 20:11:35 $

Alphabetic index HTML hierarchy of classes or Java


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