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(HttpServer webServer)
           
 
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.
 JmxMonitoringConfig<HttpServerProbe> getMonitoringConfig()
          
 NextAction handleRead(FilterChainContext ctx)
           
 
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(HttpServer webServer)
Method Detail

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()


Copyright © 2010 Oracle Corpration. All Rights Reserved.