|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.mina.protocol.ProtocolHandlerAdapter org.apache.mina.examples.sumup.ClientSessionHandler
public class ClientSessionHandler
ProtocolHandler
for SumUp client.
Constructor Summary | |
---|---|
ClientSessionHandler(int[] values)
|
Method Summary | |
---|---|
void |
exceptionCaught(ProtocolSession session,
Throwable cause)
Invoked when any exception is thrown by user ProtocolHandler
implementation or by MINA. |
boolean |
isFinished()
|
void |
messageReceived(ProtocolSession session,
Object message)
Invoked when protocol message is received. |
void |
sessionCreated(ProtocolSession session)
Invoked when the session is created. |
void |
sessionOpened(ProtocolSession session)
Invoked when the connection is opened. |
Methods inherited from class org.apache.mina.protocol.ProtocolHandlerAdapter |
---|
messageSent, sessionClosed, sessionIdle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientSessionHandler(int[] values)
Method Detail |
---|
public boolean isFinished()
public void sessionCreated(ProtocolSession session)
ProtocolHandler
sessionCreated
in interface ProtocolHandler
sessionCreated
in class ProtocolHandlerAdapter
public void sessionOpened(ProtocolSession session)
ProtocolHandler
sessionOpened
in interface ProtocolHandler
sessionOpened
in class ProtocolHandlerAdapter
public void messageReceived(ProtocolSession session, Object message)
ProtocolHandler
messageReceived
in interface ProtocolHandler
messageReceived
in class ProtocolHandlerAdapter
public void exceptionCaught(ProtocolSession session, Throwable cause)
ProtocolHandler
ProtocolHandler
implementation or by MINA. If cause
is instanceof
IOException
, MINA will close the connection automatically.
exceptionCaught
in interface ProtocolHandler
exceptionCaught
in class ProtocolHandlerAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |