Package org.apache.mina.core.filterchain
Interface IoFilterChain.Entry
-
- Enclosing interface:
- IoFilterChain
public static interface IoFilterChain.Entry
Represents a name-filter pair that anIoFilterChain
contains.- Author:
- Apache MINA Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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()
String
getName()
IoFilter.NextFilter
getNextFilter()
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.
-
addBefore
void addBefore(String name, IoFilter filter)
Adds the specified filter with the specified name just before this entry.- Parameters:
name
- The Filter's namefilter
- The added Filter
-
addAfter
void addAfter(String name, IoFilter filter)
Adds the specified filter with the specified name just after this entry.- Parameters:
name
- The Filter's namefilter
- The added Filter
-
replace
void replace(IoFilter newFilter)
Replace the filter of this entry with the specified new filter.- Parameters:
newFilter
- The new filter that will be put in the chain
-
remove
void remove()
Removes this entry from the chain it belongs to.
-
-