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, readpublic 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>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 - 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 © 2012-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.