public abstract class AbstractFilterChain extends Object implements FilterChain
FilterChain
implementation,
which redirects Processor.process(org.glassfish.grizzly.Context)
call to the FilterChain.execute(org.glassfish.grizzly.filterchain.FilterChainContext)
FilterChain
Modifier and Type | Field and Description |
---|---|
protected EnumSet<IOEvent> |
interestedIoEventsMask |
Constructor and Description |
---|
AbstractFilterChain() |
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
int |
indexOfType(Class<? extends Filter> filterType)
|
boolean |
isInterested(IOEvent ioEvent)
Is this
Processor interested in processing the i/o event |
Context |
obtainContext(Connection connection)
Creates
Context |
FilterChainContext |
obtainFilterChainContext(Connection connection) |
FilterChainContext |
obtainFilterChainContext(Connection connection,
int startIdx,
int endIdx,
int currentIdx) |
void |
setInterested(IOEvent ioEvent,
boolean isInterested)
Set the the i/o event, this
Processor is interested in |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, fail, fireEventDownstream, fireEventUpstream, flush, read
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
public int indexOfType(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 FilterChain
filterType
- 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 eventisInterested
in interface Processor<Context>
Processor
is interested and execution
process will start, false otherwise.public void setInterested(IOEvent ioEvent, boolean isInterested)
Processor
is interested insetInterested
in interface Processor<Context>
ioEvent
- IOEvent
isInterested
- true, if Processor
is interested in
processing of the I/O event, or false otherwise.public final FilterChainContext obtainFilterChainContext(Connection connection)
obtainFilterChainContext
in interface FilterChain
public FilterChainContext obtainFilterChainContext(Connection connection, int startIdx, int endIdx, int currentIdx)
obtainFilterChainContext
in interface FilterChain
public final Context obtainContext(Connection connection)
Context
obtainContext
in interface Processor<Context>
connection
- Connection
to obtain processor for.Context
, or null, if default Context
could be used.Copyright © 2014 Oracle Corporation. All rights reserved.