|
||||||||||
| 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.imagine.step3.server.ImageServerIoHandler
public class ImageServerIoHandler
server-side IoHandler
| Field Summary | |
|---|---|
static java.lang.String |
INDEX_KEY
|
| Constructor Summary | |
|---|---|
ImageServerIoHandler(javax.management.MBeanServer mBeanServer)
Creates a new instance of ImageServerIoHandler. |
|
| Method Summary | |
|---|---|
void |
exceptionCaught(IoSession session,
java.lang.Throwable cause)
This method will be called whenever an exception occurs. |
void |
messageReceived(IoSession session,
java.lang.Object message)
Handle incoming messages. |
void |
sessionCreated(IoSession session)
This method is called first when a new connection to the server is made. |
void |
sessionOpened(IoSession session)
Called when the session is opened, which will come after the session created. |
| Methods inherited from class org.apache.mina.core.service.IoHandlerAdapter |
|---|
messageSent, sessionClosed, sessionIdle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String INDEX_KEY
| Constructor Detail |
|---|
public ImageServerIoHandler(javax.management.MBeanServer mBeanServer)
mBeanServer - The JMX MBeanServer that will register the sessions| Method Detail |
|---|
public void sessionCreated(IoSession session)
throws java.lang.Exception
sessionCreated in interface IoHandlersessionCreated in class IoHandlerAdapterjava.lang.ExceptionIoHandlerAdapter.sessionCreated(org.apache.mina.core.session.IoSession)
public void sessionOpened(IoSession session)
throws java.lang.Exception
sessionOpened in interface IoHandlersessionOpened in class IoHandlerAdapterjava.lang.ExceptionIoHandlerAdapter.sessionOpened(org.apache.mina.core.session.IoSession)
public void exceptionCaught(IoSession session,
java.lang.Throwable cause)
throws java.lang.Exception
exceptionCaught in interface IoHandlerexceptionCaught in class IoHandlerAdapterjava.lang.ExceptionIoHandlerAdapter.exceptionCaught(org.apache.mina.core.session.IoSession, java.lang.Throwable)
public void messageReceived(IoSession session,
java.lang.Object message)
throws java.lang.Exception
messageReceived in interface IoHandlermessageReceived in class IoHandlerAdapterjava.lang.ExceptionIoHandlerAdapter.messageReceived(org.apache.mina.core.session.IoSession, java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||