|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 ProtocolHandlersessionCreated in class ProtocolHandlerAdapterpublic void sessionOpened(ProtocolSession session)
ProtocolHandler
sessionOpened in interface ProtocolHandlersessionOpened in class ProtocolHandlerAdapter
public void messageReceived(ProtocolSession session,
Object message)
ProtocolHandler
messageReceived in interface ProtocolHandlermessageReceived in class ProtocolHandlerAdapter
public void exceptionCaught(ProtocolSession session,
Throwable cause)
ProtocolHandlerProtocolHandler
implementation or by MINA. If cause is instanceof
IOException, MINA will close the connection automatically.
exceptionCaught in interface ProtocolHandlerexceptionCaught in class ProtocolHandlerAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||