Class DefaultIoFilterChain.EntryImpl
java.lang.Object
org.apache.mina.core.filterchain.DefaultIoFilterChain.EntryImpl
- All Implemented Interfaces:
IoFilterChain.Entry
- Enclosing class:
DefaultIoFilterChain
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IoFilterprivate final Stringprivate DefaultIoFilterChain.EntryImplprivate final IoFilter.NextFilterprivate DefaultIoFilterChain.EntryImpl -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEntryImpl(DefaultIoFilterChain.EntryImpl prevEntry, DefaultIoFilterChain.EntryImpl nextEntry, String name, IoFilter filter) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the specified filter with the specified name just after this entry.voidAdds the specified filter with the specified name just before this entry.getName()voidremove()Removes this entry from the chain it belongs to.voidReplace the filter of this entry with the specified new filter.private voidtoString()
-
Field Details
-
prevEntry
-
nextEntry
-
name
-
filter
-
nextFilter
-
-
Constructor Details
-
EntryImpl
private EntryImpl(DefaultIoFilterChain.EntryImpl prevEntry, DefaultIoFilterChain.EntryImpl nextEntry, String name, IoFilter filter)
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceIoFilterChain.Entry- Returns:
- the name of the filter.
-
getFilter
- Specified by:
getFilterin interfaceIoFilterChain.Entry- Returns:
- the filter.
-
setFilter
-
getNextFilter
- Specified by:
getNextFilterin interfaceIoFilterChain.Entry- Returns:
- The
IoFilter.NextFilterof the filter.
-
toString
-
addAfter
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
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
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
-