|
||||||||||
| 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.netcat.NetCatProtocolHandler
public class NetCatProtocolHandler
IoHandler implementation for NetCat client. This class extended
IoHandlerAdapter for convenience.
| Constructor Summary | |
|---|---|
NetCatProtocolHandler()
|
|
| Method Summary | |
|---|---|
void |
messageReceived(IoSession session,
java.lang.Object message)
Invoked when a message is received. |
void |
sessionClosed(IoSession session)
Invoked when a connection is closed. |
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 |
|---|
exceptionCaught, messageSent, sessionCreated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NetCatProtocolHandler()
| 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 IoHandlerAdapterpublic void sessionClosed(IoSession session)
IoHandler
sessionClosed in interface IoHandlersessionClosed 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 messageReceived(IoSession session,
java.lang.Object message)
IoHandler
messageReceived in interface IoHandlermessageReceived in class IoHandlerAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||