|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.examples.sumup.ServerSessionHandler
public class ServerSessionHandler
ProtocolHandler for SumUp server.
| Constructor Summary | |
|---|---|
ServerSessionHandler()
|
|
| Method Summary | |
|---|---|
void |
exceptionCaught(ProtocolSession session,
Throwable cause)
Invoked when any exception is thrown by user ProtocolHandler
implementation or by MINA. |
void |
messageReceived(ProtocolSession session,
Object message)
Invoked when protocol message is received. |
void |
messageSent(ProtocolSession session,
Object message)
Invoked when protocol message that user requested by ProtocolSession.write(Object) is sent out actually. |
void |
sessionClosed(ProtocolSession session)
Invoked when the connection is closed. |
void |
sessionCreated(ProtocolSession session)
Invoked when the session is created. |
void |
sessionIdle(ProtocolSession session,
IdleStatus status)
Invoked when the connection is idle. |
void |
sessionOpened(ProtocolSession session)
Invoked when the connection is opened. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerSessionHandler()
| Method Detail |
|---|
public void sessionCreated(ProtocolSession session)
throws Exception
ProtocolHandler
sessionCreated in interface ProtocolHandlerExceptionpublic void sessionOpened(ProtocolSession session)
ProtocolHandler
sessionOpened in interface ProtocolHandlerpublic void sessionClosed(ProtocolSession session)
ProtocolHandler
sessionClosed in interface ProtocolHandler
public void messageReceived(ProtocolSession session,
Object message)
ProtocolHandler
messageReceived in interface ProtocolHandler
public void messageSent(ProtocolSession session,
Object message)
ProtocolHandlerProtocolSession.write(Object) is sent out actually.
messageSent in interface ProtocolHandler
public void sessionIdle(ProtocolSession session,
IdleStatus status)
ProtocolHandlerIdleStatus. This
method is not invoked if the transport type is UDP.
sessionIdle in interface ProtocolHandler
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 ProtocolHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||