Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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: 555855 $, $Date: 2007-07-13 05:19:00 +0200 (Fri, 13 Jul 2007) $
Author:
  The Apache Directory Project (mina-dev@directory.apache.org)

Field Summary
`static IoFilterChainBuilder` | `NOOP` An implementation which does nothing.

Method Summary
`void` | `buildFilterChain(IoFilterChain chain)` Modifies the specified `chain`.

Field Detail

### NOOP

    static final IoFilterChainBuilder NOOP

  An implementation which does nothing.

Method Detail

### buildFilterChain

    void buildFilterChain(IoFilterChain chain)
                          throws Exception

  Modifies the specified `chain`.

  Throws:
    `Exception`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2008 Apache MINA Project. All Rights Reserved.