org.glassfish.grizzly.http.server
Class HttpServerFilter

java.lang.Object
  extended by org.glassfish.grizzly.filterchain.BaseFilter
      extended by org.glassfish.grizzly.http.server.HttpServerFilter
All Implemented Interfaces:
Filter, JmxMonitoringAware<HttpServerProbe>, MonitoringAware<HttpServerProbe>

public class HttpServerFilter
extends BaseFilter
implements JmxMonitoringAware<HttpServerProbe>

Filter implementation to provide high-level HTTP request/response processing.


Field Summary
protected  AbstractJmxMonitoringConfig<HttpServerProbe> monitoringConfig
          Web server probes
 
Constructor Summary
HttpServerFilter(ServerFilterConfiguration config, DelayedExecutor delayedExecutor)
           
 
Method Summary
protected  JmxObject createJmxManagementObject()
           
 void exceptionOccurred(FilterChainContext ctx, Throwable error)
          Override the default implementation to notify the ReadHandler, if available, of any read error that has occurred during processing.
 ServerFilterConfiguration getConfiguration()
           
 HttpHandler getHttpHandler()
           
 JmxMonitoringConfig<HttpServerProbe> getMonitoringConfig()
          
 NextAction handleRead(FilterChainContext ctx)
           
protected  void onTraceRequest(Request request, Response response)
           
 void setHttpHandler(HttpHandler httpHandler)
           
 
Methods inherited from class org.glassfish.grizzly.filterchain.BaseFilter
createContext, getFilterChain, getIndex, handleAccept, handleClose, handleConnect, handleEvent, handleWrite, onAdded, onFilterChainChanged, onRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

monitoringConfig

protected final AbstractJmxMonitoringConfig<HttpServerProbe> monitoringConfig
Web server probes

Constructor Detail

HttpServerFilter

public HttpServerFilter(ServerFilterConfiguration config,
                        DelayedExecutor delayedExecutor)
Method Detail

getHttpHandler

public HttpHandler getHttpHandler()

setHttpHandler

public void setHttpHandler(HttpHandler httpHandler)

getConfiguration

public ServerFilterConfiguration getConfiguration()

handleRead

public NextAction handleRead(FilterChainContext ctx)
                      throws IOException
Specified by:
handleRead in interface Filter
Overrides:
handleRead in class BaseFilter
Throws:
IOException

exceptionOccurred

public void exceptionOccurred(FilterChainContext ctx,
                              Throwable error)
Override the default implementation to notify the ReadHandler, if available, of any read error that has occurred during processing.

Specified by:
exceptionOccurred in interface Filter
Overrides:
exceptionOccurred in class BaseFilter
Parameters:
ctx - event processing FilterChainContext
error - error, which occurred during FilterChain execution

getMonitoringConfig

public JmxMonitoringConfig<HttpServerProbe> getMonitoringConfig()

Specified by:
getMonitoringConfig in interface JmxMonitoringAware<HttpServerProbe>
Specified by:
getMonitoringConfig in interface MonitoringAware<HttpServerProbe>

createJmxManagementObject

protected JmxObject createJmxManagementObject()

onTraceRequest

protected void onTraceRequest(Request request,
                              Response response)
                       throws IOException
Throws:
IOException


Copyright © 2012 Oracle Corporation. All Rights Reserved.