|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 IoHandler
sessionOpened
in class IoHandlerAdapter
public void sessionClosed(IoSession session)
IoHandler
sessionClosed
in interface IoHandler
sessionClosed
in class IoHandlerAdapter
public void sessionIdle(IoSession session, IdleStatus status)
IoHandler
IdleStatus
. This
method is not invoked if the transport type is UDP.
sessionIdle
in interface IoHandler
sessionIdle
in class IoHandlerAdapter
public void dataRead(IoSession session, ByteBuffer buf)
IoHandler
buf
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 IoHandler
dataRead
in class IoHandlerAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |