|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.filterchain.AbstractFilterChain
public abstract class AbstractFilterChain
Abstract FilterChain implementation,
which redirects Processor.process(org.glassfish.grizzly.Context)
call to the FilterChain.execute(org.glassfish.grizzly.filterchain.FilterChainContext)
FilterChain| Field Summary | |
|---|---|
protected java.util.EnumSet<IOEvent> |
interestedIoEventsMask
|
| Constructor Summary | |
|---|---|
AbstractFilterChain()
|
|
| Method Summary | |
|---|---|
protected void |
finalize()
|
int |
indexOfType(java.lang.Class<? extends Filter> filterType)
Get the index of Filter in chain, which type is filterType, or
-1 if the Filter of required type was not found. |
boolean |
isInterested(IOEvent ioEvent)
Is this Processor interested in processing the i/o event |
Context |
obtainContext(Connection connection)
Creates Context |
FilterChainContext |
obtainFilterChainContext(Connection connection)
|
void |
setInterested(IOEvent ioEvent,
boolean isInterested)
Set the the i/o event, this Processor is interested in |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.glassfish.grizzly.filterchain.FilterChain |
|---|
execute, fail, fireEventDownstream, fireEventUpstream, flush, read |
| Methods inherited from interface org.glassfish.grizzly.Processor |
|---|
process, read, write |
| Methods inherited from interface java.util.List |
|---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
| Field Detail |
|---|
protected final java.util.EnumSet<IOEvent> interestedIoEventsMask
| Constructor Detail |
|---|
public AbstractFilterChain()
| Method Detail |
|---|
public int indexOfType(java.lang.Class<? extends Filter> filterType)
Filter in chain, which type is filterType, or
-1 if the Filter of required type was not found.
indexOfType in interface FilterChainfilterType - the type of Filter to search.
Filter in chain, which type is filterType, or
-1 if the Filter of required type was not found.public boolean isInterested(IOEvent ioEvent)
Processor interested in processing the i/o event
isInterested in interface ProcessorProcessor is interested and execution
process will start, false otherwise.
public void setInterested(IOEvent ioEvent,
boolean isInterested)
Processor is interested in
setInterested in interface ProcessorioEvent - IOEventisInterested - true, if Processor is interested in
processing of the I/O event, or false otherwise.public final FilterChainContext obtainFilterChainContext(Connection connection)
obtainFilterChainContext in interface FilterChainpublic final Context obtainContext(Connection connection)
Context
obtainContext in interface Processorconnection - Connection to obtain processor for.
Context, or null, if default Context
could be used.
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||