Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
0.8.0
-
None
-
None
Description
There is no way to specify the initial IoFilterChain when a user binds his or her IoHandler. Users could add their filters in sessionCreated(), but it is sometimes inefficient because the filter should be added to all sessions. So we need these additional methods:
- IoAcceptor.bind(SocketAddress, IoHandler, IoFilterChainFactory)
- IoAcceptor.bind(SocketAddress, IoHandler, IoFilterChain)
and two types:
public interface IoFilterChainFactory
{
IoFilterChain getFilterChain();
}
public class <TBD> implements IoFilterChain {
....
}
Perhaps the second method can be implemented as an indirect call to the first method.