|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IoFilterChain
A container of IoFilter
s that forwards IoHandler
events
to the consisting filters and terminal IoHandler
sequentially.
Every IoSession
has its own IoFilterChain
(1-to-1 relationship).
Nested Class Summary | |
---|---|
static interface |
IoFilterChain.Entry
Represents a name-filter pair that an IoFilterChain contains. |
Method Summary | |
---|---|
void |
addAfter(String baseName,
String name,
IoFilter filter)
Adds the specified filter with the specified name just after the filter whose name is baseName in this chain. |
void |
addBefore(String baseName,
String name,
IoFilter filter)
Adds the specified filter with the specified name just before the filter whose name is baseName in this chain. |
void |
addFirst(String name,
IoFilter filter)
Adds the specified filter with the specified name at the beginning of this chain. |
void |
addLast(String name,
IoFilter filter)
Adds the specified filter with the specified name at the end of this chain. |
void |
clear()
Removes all filters added to this chain. |
boolean |
contains(Class filterType)
Returns true if this chain contains an IoFilter of the
specified filterType. |
boolean |
contains(IoFilter filter)
Returns true if this chain contains the specified filter. |
boolean |
contains(String name)
Returns true if this chain contains an IoFilter with the
specified name. |
IoFilter |
get(String name)
Returns the IoFilter with the specified name in this chain. |
List |
getAll()
Returns the list of all IoFilterChain.Entry s this chain contains. |
List |
getAllReversed()
Returns the reversed list of all IoFilterChain.Entry s this chain contains. |
IoFilterChain.Entry |
getEntry(String name)
Returns the IoFilterChain.Entry with the specified name in this chain. |
IoFilter.NextFilter |
getNextFilter(String name)
Returns the IoFilter.NextFilter of the IoFilter with the
specified name in this chain. |
IoSession |
getSession()
Returns the parent IoSession of this chain. |
IoFilter |
remove(String name)
Removes the filter with the specified name from this chain. |
Method Detail |
---|
IoSession getSession()
IoSession
of this chain.
IoSession
IoFilterChain.Entry getEntry(String name)
IoFilterChain.Entry
with the specified name in this chain.
IoFilter get(String name)
IoFilter
with the specified name in this chain.
IoFilter.NextFilter getNextFilter(String name)
IoFilter.NextFilter
of the IoFilter
with the
specified name in this chain.
List getAll()
IoFilterChain.Entry
s this chain contains.
List getAllReversed()
IoFilterChain.Entry
s this chain contains.
boolean contains(String name)
IoFilter
with the
specified name.
boolean contains(IoFilter filter)
boolean contains(Class filterType)
IoFilter
of the
specified filterType.
void addFirst(String name, IoFilter filter)
IoFilterLifeCycleException
- if IoFilter.onPostAdd(IoFilterChain, String, NextFilter)
or
IoFilter.init()
throws an exception.void addLast(String name, IoFilter filter)
IoFilterLifeCycleException
- if IoFilter.onPostAdd(IoFilterChain, String, NextFilter)
or
IoFilter.init()
throws an exception.void addBefore(String baseName, String name, IoFilter filter)
baseName
in this chain.
IoFilterLifeCycleException
- if IoFilter.onPostAdd(IoFilterChain, String, NextFilter)
or
IoFilter.init()
throws an exception.void addAfter(String baseName, String name, IoFilter filter)
baseName
in this chain.
IoFilterLifeCycleException
- if IoFilter.onPostAdd(IoFilterChain, String, NextFilter)
or
IoFilter.init()
throws an exception.IoFilter remove(String name)
IoFilterLifeCycleException
- if IoFilter.onPostRemove(IoFilterChain, String, NextFilter)
or
IoFilter.destroy()
throws an exception.void clear() throws Exception
Exception
- if IoFilter.onPostRemove(IoFilterChain, String, NextFilter)
thrown an exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |