public interface IoFilterChainBuilder
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() ); } }
Modifier and Type | Field and Description |
---|---|
static IoFilterChainBuilder |
NOOP
An implementation which does nothing.
|
Modifier and Type | Method and Description |
---|---|
void |
buildFilterChain(IoFilterChain chain)
Modifies the specified chain.
|
static final IoFilterChainBuilder NOOP
void buildFilterChain(IoFilterChain chain) throws Exception
chain
- The chain to modifyException
- If the chain modification failedCopyright © 2004–2018 Apache MINA Project. All rights reserved.