The default implementation of {@link IoFilterChainBuilder} which is usefulin most cases. {@link DefaultIoFilterChainBuilder} has an identical interfacewith {@link IoFilter}; it contains a list of {@link IoFilter}s that you can modify. The {@link IoFilter}s which are added to this builder will be appended to the {@link IoFilterChain} when {@link #buildFilterChain(IoFilterChain)} isinvoked.
However, the identical interface doesn't mean that it behaves in an exactly same way with {@link IoFilterChain}. {@link DefaultIoFilterChainBuilder}doesn't manage the life cycle of the {@link IoFilter}s at all, and the existing {@link IoSession}s won't get affected by the changes in this builder. {@link IoFilterChainBuilder}s affect only newly created {@link IoSession}s.
IoAcceptor acceptor = ...; DefaultIoFilterChainBuilder builder = acceptor.getFilterChain(); builder.addLast( "myFilter", new MyFilter() ); ...
@author The Apache Directory Project (mina-dev@directory.apache.org)
@version $Rev: 562335 $, $Date: 2007-08-03 14:28:02 +0900 (Fri, 03 Aug 2007) $