Package org.apache.mina.core.filterchain
Class DefaultIoFilterChainBuilder.EntryImpl
- java.lang.Object
-
- org.apache.mina.core.filterchain.DefaultIoFilterChainBuilder.EntryImpl
-
- All Implemented Interfaces:
IoFilterChain.Entry
- Enclosing class:
- DefaultIoFilterChainBuilder
private final class DefaultIoFilterChainBuilder.EntryImpl extends java.lang.Object implements IoFilterChain.Entry
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAfter(java.lang.String name, IoFilter filter)Adds the specified filter with the specified name just after this entry.voidaddBefore(java.lang.String name, IoFilter filter)Adds the specified filter with the specified name just before this entry.IoFiltergetFilter()java.lang.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.private voidsetFilter(IoFilter filter)java.lang.StringtoString()
-
-
-
Field Detail
-
name
private final java.lang.String name
-
filter
private volatile IoFilter filter
-
-
Constructor Detail
-
EntryImpl
private EntryImpl(java.lang.String name, IoFilter filter)
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceIoFilterChain.Entry- Returns:
- the name of the filter.
-
getFilter
public IoFilter getFilter()
- Specified by:
getFilterin interfaceIoFilterChain.Entry- Returns:
- the filter.
-
setFilter
private void setFilter(IoFilter filter)
-
getNextFilter
public IoFilter.NextFilter getNextFilter()
- Specified by:
getNextFilterin interfaceIoFilterChain.Entry- Returns:
- The
IoFilter.NextFilterof the filter.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
addAfter
public void addAfter(java.lang.String name, IoFilter filter)Adds the specified filter with the specified name just after this entry.- Specified by:
addAfterin interfaceIoFilterChain.Entry- Parameters:
name- The Filter's namefilter- The added Filter
-
addBefore
public void addBefore(java.lang.String name, IoFilter filter)Adds the specified filter with the specified name just before this entry.- Specified by:
addBeforein interfaceIoFilterChain.Entry- Parameters:
name- The Filter's namefilter- The added Filter
-
remove
public void remove()
Removes this entry from the chain it belongs to.- Specified by:
removein interfaceIoFilterChain.Entry
-
replace
public void replace(IoFilter newFilter)
Replace the filter of this entry with the specified new filter.- Specified by:
replacein interfaceIoFilterChain.Entry- Parameters:
newFilter- The new filter that will be put in the chain
-
-