org.glassfish.grizzly.web.arp
Class AsyncWebFilter

java.lang.Object
  extended by org.glassfish.grizzly.filterchain.FilterAdapter
      extended by org.glassfish.grizzly.web.WebFilter<AsyncWebFilterConfig>
          extended by org.glassfish.grizzly.web.arp.AsyncWebFilter
All Implemented Interfaces:
MBeanRegistration, Filter, TaskListener

public class AsyncWebFilter
extends WebFilter<AsyncWebFilterConfig>
implements TaskListener

Author:
Alexey Stashok

Field Summary
 
Fields inherited from class org.glassfish.grizzly.web.WebFilter
activeProcessorTasks, config, globalRequestProcessor, globalRequestProcessorName, jmxManager, logger, name, processorTasks, processorWorkerThreadName, sm, threadPoolStat
 
Constructor Summary
AsyncWebFilter(String name)
           
AsyncWebFilter(String name, AsyncWebFilterConfig config)
           
 
Method Summary
protected  void configureProcessorTask(ProcessorTask processorTask, FilterChainContext context)
          Configure SSLProcessorTask.
protected  void displayConfiguration()
          Display the Grizzly configuration parameters.
 NextAction handleRead(FilterChainContext ctx, NextAction nextAction)
          Execute a unit of processing work to be performed.
protected  ProcessorTask initializeProcessorTask(ProcessorTask task)
           
 void taskEvent(TaskEvent event)
          Called when the Asynchronous Request Processing is resuming.
 
Methods inherited from class org.glassfish.grizzly.web.WebFilter
disableMonitoring, disableThreadPoolStats, enableMonitoring, enableThreadPoolStats, getActiveProcessorTasks, getConfig, getJmxManager, getKeepAliveStats, getName, getProcessorTask, getRequestGroupInfo, getThreadPoolStatistic, handleAccept, handleClose, initialize, initMonitoringLevel, initProcessorTasks, logger, newProcessorTask, postDeregister, postRegister, preDeregister, preRegister, rampUpProcessorTasks, registerComponents, release, returnTask, setConfig, setJmxManager, setLogger, setName, setRequestProcessor, unregisterComponents
 
Methods inherited from class org.glassfish.grizzly.filterchain.FilterAdapter
exceptionOccurred, getFilterChain, getIndex, handleConnect, handleWrite, isIndexable, postAccept, postClose, postConnect, postRead, postWrite, setIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncWebFilter

public AsyncWebFilter(String name)

AsyncWebFilter

public AsyncWebFilter(String name,
                      AsyncWebFilterConfig config)
Method Detail

handleRead

public NextAction handleRead(FilterChainContext ctx,
                             NextAction nextAction)
                      throws IOException
Execute a unit of processing work to be performed. This ProtocolFilter may either complete the required processing and return false, or delegate remaining processing to the next ProtocolFilter in a ProtocolChain containing this ProtocolFilter by returning true.

Specified by:
handleRead in interface Filter
Overrides:
handleRead in class WebFilter<AsyncWebFilterConfig>
Throws:
IOException

taskEvent

public void taskEvent(TaskEvent event)
Called when the Asynchronous Request Processing is resuming.

Specified by:
taskEvent in interface TaskListener

configureProcessorTask

protected void configureProcessorTask(ProcessorTask processorTask,
                                      FilterChainContext context)
Configure SSLProcessorTask.

Overrides:
configureProcessorTask in class WebFilter<AsyncWebFilterConfig>

initializeProcessorTask

protected ProcessorTask initializeProcessorTask(ProcessorTask task)
Overrides:
initializeProcessorTask in class WebFilter<AsyncWebFilterConfig>

displayConfiguration

protected void displayConfiguration()
Display the Grizzly configuration parameters.

Overrides:
displayConfiguration in class WebFilter<AsyncWebFilterConfig>


Copyright © 2009 SUN Microsystems. All Rights Reserved.