Package org.apache.mina.core.filterchain
Interface IoFilterChain.Entry
-
- Enclosing interface:
- IoFilterChain
public static interface IoFilterChain.EntryRepresents a name-filter pair that anIoFilterChaincontains.- Author:
- Apache MINA Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAfter(String name, IoFilter filter)Adds the specified filter with the specified name just after this entry.voidaddBefore(String name, IoFilter filter)Adds the specified filter with the specified name just before this entry.IoFiltergetFilter()StringgetName()IoFilter.NextFiltergetNextFilter()voidremove()Removes this entry from the chain it belongs to.voidreplace(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.NextFilterof 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.
-
-