|
EPP 0.2.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neulevel.epp.transport.EppChannel
com.neulevel.epp.transport.tcp.EppChannelTcp
This EppChannelTcp
is designed to handle a session connection
to the EPP server via TCP/TLS.
Field Summary |
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 |
public EppChannelTcp(EppSessionTcp session)
EppChannelTcp
object
session
- the EppSessionTcp
object in which
an EPP Channel is createdMethod Detail |
public java.net.Socket getSocket()
public long getLastNetTransaction()
System.currentTimeMillis()
. If the value returned
is 0, no transaction has been performed.
public boolean isValid()
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,
public EppResponse send(EppCommand command)
EppCommand
object to the EPP Server and gets
an EppResponse
object back from the EPP Server
send
in class EppChannel
command
- the command to be send to the EPP server
EppResponse
object, or null if there is
error with the connection to the serverpublic EppResponse start(EppCommandLogin login)
EppChannel
by sending an
EppCommandLogin
object to the EPP Server
start
in class EppChannel
login
- the EppCommandLogin
object for
establisging the EPP Channel
EppResponse
object indicating if the channel
is started successfully or notpublic EppGreeting hello()
EppGreeting
object
hello
in class EppChannel
EppGreeting
returned by the EPP Server,
or null if there is any errorpublic EppResponse terminate()
terminate
in class EppChannel
EppResponse
object indicating if the
channel is terminated successfully or not
|
EPP 0.2.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |