|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ProtocolFilter
A filter which intercepts ProtocolHandler events like Servlet
filters. Filters can be used for these purposes:
Please NEVER implement your filters to wrap
ProtocolSessions. Users can cache the reference to the
session, which might malfunction if any filters are added or removed later.
ProtocolFilterAdapter| Nested Class Summary | |
|---|---|
static interface |
ProtocolFilter.NextFilter
|
| Method Detail |
|---|
void sessionOpened(ProtocolFilter.NextFilter nextFilter,
ProtocolSession session)
throws java.lang.Exception
ProtocolHandler.sessionOpened(ProtocolSession) event.
java.lang.Exception
void sessionClosed(ProtocolFilter.NextFilter nextFilter,
ProtocolSession session)
throws java.lang.Exception
ProtocolHandler.sessionClosed(ProtocolSession) event.
java.lang.Exception
void sessionIdle(ProtocolFilter.NextFilter nextFilter,
ProtocolSession session,
IdleStatus status)
throws java.lang.Exception
ProtocolHandler.sessionIdle(ProtocolSession,IdleStatus)
event.
java.lang.Exception
void exceptionCaught(ProtocolFilter.NextFilter nextFilter,
ProtocolSession session,
java.lang.Throwable cause)
throws java.lang.Exception
ProtocolHandler.exceptionCaught(ProtocolSession,Throwable)
event.
java.lang.Exception
void messageReceived(ProtocolFilter.NextFilter nextFilter,
ProtocolSession session,
java.lang.Object message)
throws java.lang.Exception
ProtocolHandler.messageReceived(ProtocolSession,Object)
event.
java.lang.Exception
void messageSent(ProtocolFilter.NextFilter nextFilter,
ProtocolSession session,
java.lang.Object message)
throws java.lang.Exception
ProtocolHandler.messageSent(ProtocolSession,Object)
event.
java.lang.Exception
void filterWrite(ProtocolFilter.NextFilter nextFilter,
ProtocolSession session,
java.lang.Object message)
throws java.lang.Exception
ProtocolSession.write(Object) method invocation.
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||