org.apache.mina.core.filterchain
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() );
}
}
- Version:
- $Rev: 576217 $, $Date: 2007-09-17 01:55:27 +0200 (Mon, 17 Sep 2007) $
- Author:
- The Apache MINA Project (dev@mina.apache.org)
NOOP
static final IoFilterChainBuilder NOOP
- An implementation which does nothing.
buildFilterChain
void buildFilterChain(IoFilterChain chain)
throws Exception
- Modifies the specified chain.
- Throws:
Exception
Copyright © 2004-2009 Apache MINA Project. All Rights Reserved.