|
||||||||||
| 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 com.sun.grizzly.Processor#process(com.sun.grizzly.Context)
call to the AbstractFilterChain#execute(com.sun.grizzly.filterchain.FilterChainContext)
FilterChain| Field Summary | |
|---|---|
protected FilterChainFactory |
factory
|
protected ObjectPool<FilterChainContext> |
filterChainContextPool
FilterChainContext object pool. |
protected IOEventMask |
interestedIoEventsMask
|
| Constructor Summary | |
|---|---|
AbstractFilterChain(FilterChainFactory factory)
|
|
| Method Summary | |
|---|---|
void |
afterProcess(Context context)
Method will be called by framework after Processor execution,
so it can release associated resources. |
void |
beforeProcess(Context context)
Method will be called by framework before executing this Processor. |
FilterChainContext |
context()
Creates Context |
abstract ProcessorResult |
execute(FilterChainContext context)
Method processes occured IOEvent on this FilterChain. |
FilterChainFactory |
getFactory()
Get the FilterChainFactory, which
created this FilterChain. |
boolean |
isInterested(IOEvent ioEvent)
Is this Processor interested in processing the i/o event |
ProcessorResult |
process(Context context)
Delegates processing to execute(org.glassfish.grizzly.filterchain.FilterChainContext) |
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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.glassfish.grizzly.filterchain.FilterChain |
|---|
getCodec |
| 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 FilterChainFactory factory
protected IOEventMask interestedIoEventsMask
protected final ObjectPool<FilterChainContext> filterChainContextPool
FilterChainContext object pool.
| Constructor Detail |
|---|
public AbstractFilterChain(FilterChainFactory factory)
| Method Detail |
|---|
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 FilterChainFactory getFactory()
FilterChainFactory, which
created this FilterChain.
getFactory in interface FilterChainFilterChainFactory.
public void beforeProcess(Context context)
throws IOException
Processor.
beforeProcess in interface Processorcontext - processing context
IOException
public ProcessorResult process(Context context)
throws IOException
execute(org.glassfish.grizzly.filterchain.FilterChainContext)
process in interface Processorcontext - processing Context
ProcessorResult
IOException
public void afterProcess(Context context)
throws IOException
Processor execution,
so it can release associated resources.
afterProcess in interface Processorcontext - processing context
IOExceptionpublic FilterChainContext context()
Context
context in interface ProcessorContext, or null, if default Context
could be used.
public abstract ProcessorResult execute(FilterChainContext context)
throws IOException
IOEvent on this FilterChain.
context - processing context
ProcessorResult
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||