org.apache.mina.common
Interface IoFilterChainBuilder
- All Known Subinterfaces:
- ThreadModel
- All Known Implementing Classes:
- DefaultIoFilterChainBuilder, ExecutorThreadModel
- public interface IoFilterChainBuilder
An interface that builds IoFilterChain
in predefined way
when IoSession
is created. You can extract common filter chain
modification logic to this interface. For example, to add a filter
to the chain,
public class MyFilterChainBuilder implements IoFilterChainBuilder {
public void buildFilterChain( IoFilterChain chain ) throws Exception {
chain.addLast( "myFilter", new MyFilter() );
}
}
- Version:
- $Rev: 436993 $, $Date: 2006-08-26 00:36:56 +0200 (Sat, 26 Aug 2006) $
- Author:
- The Apache Directory Project (mina-dev@directory.apache.org)
NOOP
public static final IoFilterChainBuilder NOOP
- An implementation which does nothing.
buildFilterChain
public void buildFilterChain(IoFilterChain chain)
throws Exception
- Modifies the specified chain.
- Throws:
Exception