|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IoFilter
A filter which intercepts IoHandler
events like Servlet filters.
Filters can be used for these purposes:
Please refer to BlacklistFilter
example.
Please NEVER implement your filters to wrap
IoSession
s. Users can cache the reference to the session,
which might malfunction if any filters are added or removed later.
IoFilterAdapter
Nested Class Summary | |
---|---|
static interface |
IoFilter.NextFilter
|
Method Summary | |
---|---|
void |
dataRead(IoFilter.NextFilter nextFilter,
IoSession session,
ByteBuffer buf)
Filters IoHandler.dataRead(IoSession, ByteBuffer) event. |
void |
dataWritten(IoFilter.NextFilter nextFilter,
IoSession session,
Object marker)
Filters IoHandler.dataWritten(IoSession, Object) event. |
void |
exceptionCaught(IoFilter.NextFilter nextFilter,
IoSession session,
Throwable cause)
Filters IoHandler.exceptionCaught(IoSession, Throwable) event. |
void |
filterWrite(IoFilter.NextFilter nextFilter,
IoSession session,
ByteBuffer buf,
Object marker)
Filters IoSession.write(ByteBuffer, Object) method invocation. |
void |
sessionClosed(IoFilter.NextFilter nextFilter,
IoSession session)
Filters IoHandler.sessionClosed(IoSession) event. |
void |
sessionIdle(IoFilter.NextFilter nextFilter,
IoSession session,
IdleStatus status)
Filters IoHandler.sessionIdle(IoSession, IdleStatus) event. |
void |
sessionOpened(IoFilter.NextFilter nextFilter,
IoSession session)
Filters IoHandler.sessionOpened(IoSession) event. |
Method Detail |
---|
void sessionOpened(IoFilter.NextFilter nextFilter, IoSession session) throws Exception
IoHandler.sessionOpened(IoSession)
event.
Exception
void sessionClosed(IoFilter.NextFilter nextFilter, IoSession session) throws Exception
IoHandler.sessionClosed(IoSession)
event.
Exception
void sessionIdle(IoFilter.NextFilter nextFilter, IoSession session, IdleStatus status) throws Exception
IoHandler.sessionIdle(IoSession, IdleStatus)
event.
Exception
void exceptionCaught(IoFilter.NextFilter nextFilter, IoSession session, Throwable cause) throws Exception
IoHandler.exceptionCaught(IoSession, Throwable)
event.
Exception
void dataRead(IoFilter.NextFilter nextFilter, IoSession session, ByteBuffer buf) throws Exception
IoHandler.dataRead(IoSession, ByteBuffer)
event.
Exception
void dataWritten(IoFilter.NextFilter nextFilter, IoSession session, Object marker) throws Exception
IoHandler.dataWritten(IoSession, Object)
event.
Exception
void filterWrite(IoFilter.NextFilter nextFilter, IoSession session, ByteBuffer buf, Object marker) throws Exception
IoSession.write(ByteBuffer, Object)
method invocation.
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |