private class DefaultIoFilterChainBuilder.EntryImpl extends java.lang.Object implements IoFilterChain.Entry
| Modifier and Type | Field and Description |
|---|---|
private IoFilter |
filter |
private java.lang.String |
name |
| Modifier | Constructor and Description |
|---|---|
private |
EntryImpl(java.lang.String name,
IoFilter filter) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAfter(java.lang.String name,
IoFilter filter)
Adds the specified filter with the specified name just after this entry.
|
void |
addBefore(java.lang.String name,
IoFilter filter)
Adds the specified filter with the specified name just before this entry.
|
IoFilter |
getFilter()
Returns the filter.
|
java.lang.String |
getName()
Returns the name of the filter.
|
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.
|
private void |
setFilter(IoFilter filter) |
java.lang.String |
toString() |
private final java.lang.String name
private volatile IoFilter filter
private EntryImpl(java.lang.String name,
IoFilter filter)
public java.lang.String getName()
IoFilterChain.EntrygetName in interface IoFilterChain.Entrypublic IoFilter getFilter()
IoFilterChain.EntrygetFilter in interface IoFilterChain.Entryprivate void setFilter(IoFilter filter)
public IoFilter.NextFilter getNextFilter()
getNextFilter in interface IoFilterChain.EntryIoFilter.NextFilter of the filter.public java.lang.String toString()
toString in class java.lang.Objectpublic void addAfter(java.lang.String name,
IoFilter filter)
IoFilterChain.EntryaddAfter in interface IoFilterChain.Entrypublic void addBefore(java.lang.String name,
IoFilter filter)
IoFilterChain.EntryaddBefore in interface IoFilterChain.Entrypublic void remove()
IoFilterChain.Entryremove in interface IoFilterChain.Entrypublic void replace(IoFilter newFilter)
IoFilterChain.Entryreplace in interface IoFilterChain.Entry