|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.io.IoHandlerAdapter
org.apache.mina.examples.netcat.NetCatProtocolHandler
public class NetCatProtocolHandler
IoHandler implementation for NetCat client. This class extended
IoHandlerAdapter for convenience.
| Constructor Summary | |
|---|---|
NetCatProtocolHandler()
|
|
| Method Summary | |
|---|---|
void |
dataRead(IoSession session,
ByteBuffer buf)
Invoked when data is read from the connection. |
void |
sessionClosed(IoSession session)
Invoked when the connection is closed. |
void |
sessionIdle(IoSession session,
IdleStatus status)
Invoked when the connection is idle. |
void |
sessionOpened(IoSession session)
Invoked when the connection is opened. |
| Methods inherited from class org.apache.mina.io.IoHandlerAdapter |
|---|
dataWritten, exceptionCaught, 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)
IoHandler
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. This
method is not invoked if the transport type is UDP.
sessionIdle in interface IoHandlersessionIdle in class IoHandlerAdapter
public void dataRead(IoSession session,
ByteBuffer buf)
IoHandlerbuf to get read data. buf returns to
the internal buffer pool of MINA after this method is invoked, so
please don't try to reuse it.
dataRead in interface IoHandlerdataRead in class IoHandlerAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||