Interface IoFilterChainBuilder
- All Known Implementing Classes:
DefaultIoFilterChainBuilder
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() );
}
}
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IoFilterChainBuilderAn implementation which does nothing. -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildFilterChain(IoFilterChain chain) Modifies the specifiedchain.
-
Field Details
-
NOOP
An implementation which does nothing.
-
-
Method Details
-
buildFilterChain
Modifies the specifiedchain.- Parameters:
chain- The chain to modify- Throws:
Exception- If the chain modification failed
-