org.apache.mina.common
Interface IoFilterChain.Entry

Enclosing interface:
IoFilterChain

public static interface IoFilterChain.Entry

Represents a name-filter pair that an IoFilterChain contains.

Version:
$Rev: 593474 $, $Date: 2007-11-09 11:14:12 +0100 (Fri, 09 Nov 2007) $
Author:
The Apache MINA Project (dev@mina.apache.org)

Method Summary
 void addAfter(String name, IoFilter filter)
          Adds the specified filter with the specified name just after this entry.
 void addBefore(String name, IoFilter filter)
          Adds the specified filter with the specified name just before this entry.
 IoFilter getFilter()
          Returns the filter.
 String getName()
          Returns the name of the filter.
 IoFilter.NextFilter getNextFilter()
          Returns the IoFilter.NextFilter of the filter.
 void remove()
          Removes this entry from the chain it belongs to.
 void replace(IoFilter newFilter)
          Replace the filter of this entry with the specified new filter.
 

Method Detail

getName

String getName()
Returns the name of the filter.


getFilter

IoFilter getFilter()
Returns the filter.


getNextFilter

IoFilter.NextFilter getNextFilter()
Returns the IoFilter.NextFilter of the filter.

Throws:
IllegalStateException - if the IoFilter.NextFilter is not available

addBefore

void addBefore(String name,
               IoFilter filter)
Adds the specified filter with the specified name just before this entry.

Throws:
IoFilterLifeCycleException - if IoFilter.onPostAdd(IoFilterChain, String, NextFilter) or IoFilter.init() throws an exception.

addAfter

void addAfter(String name,
              IoFilter filter)
Adds the specified filter with the specified name just after this entry.

Throws:
IoFilterLifeCycleException - if IoFilter.onPostAdd(IoFilterChain, String, NextFilter) or IoFilter.init() throws an exception.

replace

void replace(IoFilter newFilter)
Replace the filter of this entry with the specified new filter.

Throws:
IllegalArgumentException - if there's no such filter

remove

void remove()
Removes this entry from the chain it belongs to.



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