|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SessionFilter
Session filter, filter session events.
| Method Summary | |
|---|---|
void |
exceptionCaught(SessionFilterChain filterChain,
java.lang.Throwable cause)
Session caught a exception. |
void |
objectReceived(SessionFilterChain filterChain,
java.lang.Object obj)
Session received a object which is decoded by PacketDecoder. |
void |
objectSent(SessionFilterChain filterChain,
java.lang.Object obj)
Session sent a object. |
void |
packetReceived(SessionFilterChain filterChain,
Packet packet)
Session received a packet. |
void |
packetSend(SessionFilterChain filterChain,
Packet packet)
Filter before send packet. |
void |
packetSent(SessionFilterChain filterChain,
Packet packet)
Session sent a packet. |
void |
sessionClosed(SessionFilterChain filterChain)
Session have closed. |
void |
sessionStarted(SessionFilterChain filterChain)
Session have started. |
void |
sessionTimeout(SessionFilterChain filterChain)
Session timeout, but not closed. |
| Method Detail |
|---|
void sessionStarted(SessionFilterChain filterChain)
throws java.lang.Exception
filterChain - session filter chain
java.lang.Exception - any exception
void sessionClosed(SessionFilterChain filterChain)
throws java.lang.Exception
filterChain - session filter chain
java.lang.Exception - any exception
void sessionTimeout(SessionFilterChain filterChain)
throws java.lang.Exception
filterChain - session filter chain
java.lang.Exception - any exception
void packetReceived(SessionFilterChain filterChain,
Packet packet)
throws java.lang.Exception
filterChain - session filter chainpacket - the received packet
java.lang.Exception - any exception
void objectReceived(SessionFilterChain filterChain,
java.lang.Object obj)
throws java.lang.Exception
PacketDecoder.
filterChain - session filter chainobj - object
java.lang.Exception - any exception
void packetSend(SessionFilterChain filterChain,
Packet packet)
throws java.lang.Exception
filterChain - session filter chainpacket - send packet
java.lang.Exception - any exception
void packetSent(SessionFilterChain filterChain,
Packet packet)
throws java.lang.Exception
filterChain - session filter chainpacket - the sent packet
java.lang.Exception - any exception
void objectSent(SessionFilterChain filterChain,
java.lang.Object obj)
throws java.lang.Exception
filterChain - session filter chainobj - the sent object
java.lang.Exception - any exception
void exceptionCaught(SessionFilterChain filterChain,
java.lang.Throwable cause)
filterChain - session filter chaincause - exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||