|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.core.service.IoHandlerAdapter
org.apache.mina.example.sumup.ServerSessionHandler
public class ServerSessionHandler
IoHandler for SumUp server.
| Constructor Summary | |
|---|---|
ServerSessionHandler()
|
|
| Method Summary | |
|---|---|
void |
exceptionCaught(IoSession session,
java.lang.Throwable cause)
Invoked when any exception is thrown by user IoHandler
implementation or by MINA. |
void |
messageReceived(IoSession session,
java.lang.Object message)
Invoked when a message is received. |
void |
sessionIdle(IoSession session,
IdleStatus status)
Invoked with the related IdleStatus when a connection becomes idle. |
void |
sessionOpened(IoSession session)
Invoked when a connection has been opened. |
| Methods inherited from class org.apache.mina.core.service.IoHandlerAdapter |
|---|
messageSent, sessionClosed, sessionCreated |
| 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 sessionOpened(IoSession session)
IoHandlerIoHandler.sessionCreated(IoSession). The biggest difference from
IoHandler.sessionCreated(IoSession) is that it's invoked from other thread
than an I/O processor thread once thread model is configured properly.
sessionOpened in interface IoHandlersessionOpened in class IoHandlerAdapter
public void messageReceived(IoSession session,
java.lang.Object message)
IoHandler
messageReceived in interface IoHandlermessageReceived in class IoHandlerAdapter
public void sessionIdle(IoSession session,
IdleStatus status)
IoHandlerIdleStatus when a connection becomes idle.
This method is not invoked if the transport type is UDP; it's a known bug,
and will be fixed in 2.0.
sessionIdle in interface IoHandlersessionIdle in class IoHandlerAdapter
public void exceptionCaught(IoSession session,
java.lang.Throwable cause)
IoHandlerIoHandler
implementation or by MINA. If cause is an instance of
IOException, MINA will close the connection automatically.
exceptionCaught in interface IoHandlerexceptionCaught in class IoHandlerAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||