|
EPP 0.2.5 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.neulevel.epp.transport.EppChannel
This EppChannel
class is designed to handle a channel connected
to the EPP server.
Field Summary | |
protected int |
status
The status of the EppChannel object. |
protected static int |
STATUS_CLOSED
The status value when the EppChannel object is
closed atfer successfully calling the close method |
protected static int |
STATUS_INIT
The status value when the EppChannel object is
created, but not started |
protected static int |
STATUS_START
The status value when the EppChannel object is
started after sucessfully calling the start method |
Constructor Summary | |
EppChannel()
|
Method Summary | |
java.lang.Exception |
getException()
Gets the last exception received for the EPP Channel |
java.lang.String |
getMessage()
Gets the last message received for the EPP Channel |
EppSession |
getSession()
Gets the EppSession object associated with the
EPP Channel |
abstract EppGreeting |
hello()
Sends an EPP Hello message to the EPP Server and returns back with an EppGreeting object |
abstract EppResponse |
send(EppCommand command)
Sends an EppCommand object to the EPP Server and gets
an EppResponse object back from the EPP Server |
void |
setException(java.lang.Exception e)
Sets the current exception received for the EPP Channel |
void |
setMessage(java.lang.String message)
Sets the current message received for the EPP Channel |
void |
setSession(EppSession session)
Sets the EppSession object associated with the
EPP Channel |
abstract EppResponse |
start(EppCommandLogin login)
Starts up the EppChannel by sending an
EppCommandLogin object to the EPP Server |
abstract EppResponse |
terminate()
Terminates an EPP Channel |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected static final int STATUS_INIT
EppChannel
object is
created, but not startedprotected static final int STATUS_START
EppChannel
object is
started after sucessfully calling the start
methodprotected static final int STATUS_CLOSED
EppChannel
object is
closed atfer successfully calling the close
methodprotected int status
EppChannel
object. It is used
for recording the status transition from STATUS_INIT
to STATUS_START
, and finally to
STATUS_CLOSED
Constructor Detail |
public EppChannel()
Method Detail |
public EppSession getSession()
EppSession
object associated with the
EPP Channelpublic void setSession(EppSession session)
EppSession
object associated with the
EPP Channelsession
- the EppSession
used for creating the
channelpublic void setMessage(java.lang.String message)
public java.lang.String getMessage()
public java.lang.Exception getException()
public void setException(java.lang.Exception e)
public abstract EppResponse start(EppCommandLogin login)
EppChannel
by sending an
EppCommandLogin
object to the EPP Serverlogin
- the EppCommandLogin
object for
establisging the EPP ChannelEppResponse
object indicating if the channel
is started successfully or notpublic abstract EppGreeting hello()
EppGreeting
objectEppGreeting
returned by the EPP Server,
or null if there is any errorpublic abstract EppResponse terminate()
EppResponse
object indicating if the
channel is terminated successfully or notpublic abstract EppResponse send(EppCommand command)
EppCommand
object to the EPP Server and gets
an EppResponse
object back from the EPP Servercommand
- the command to be send to the EPP serverEppResponse
object, or null if there is
error with the connection to the server
|
EPP 0.2.5 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |