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,
Closeable closeable) |
FilterChainContext |
obtainFilterChainContext(Connection connection,
Closeable closeable,
int startIdx,
int endIdx,
int currentIdx) |
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 |
String |
toString() |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitexecute, fail, fireEventDownstream, fireEventUpstream, flush, readadd, 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, toArrayparallelStream, removeIf, streampublic 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 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 eventisInterested in interface Processor<Context>ioEvent - the event to check if the Processor is interested inProcessor 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 - 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 FilterChainContext obtainFilterChainContext(Connection connection, Closeable closeable)
obtainFilterChainContext in interface FilterChainpublic FilterChainContext obtainFilterChainContext(Connection connection, int startIdx, int endIdx, int currentIdx)
obtainFilterChainContext in interface FilterChainpublic FilterChainContext obtainFilterChainContext(Connection connection, Closeable closeable, int startIdx, int endIdx, int currentIdx)
obtainFilterChainContext in interface FilterChainpublic final Context obtainContext(Connection connection)
ContextobtainContext in interface Processor<Context>connection - Connection to obtain processor for.Context, or null, if default Context could be used.Copyright © 2017–2020 Oracle Corporation. All rights reserved.