org.glassfish.grizzly.http.server
Class HttpServerFilter
java.lang.Object
org.glassfish.grizzly.filterchain.BaseFilter
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.
| 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 |
monitoringConfig
protected final AbstractJmxMonitoringConfig<HttpServerProbe> monitoringConfig
- Web server probes
HttpServerFilter
public HttpServerFilter(ServerFilterConfiguration config,
DelayedExecutor delayedExecutor)
getHttpHandler
public HttpHandler getHttpHandler()
setHttpHandler
public void setHttpHandler(HttpHandler httpHandler)
getConfiguration
public ServerFilterConfiguration getConfiguration()
handleRead
public NextAction handleRead(FilterChainContext ctx)
throws java.io.IOException
- Specified by:
handleRead in interface Filter- Overrides:
handleRead in class BaseFilter
- Throws:
java.io.IOException
exceptionOccurred
public void exceptionOccurred(FilterChainContext ctx,
java.lang.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 FilterChainContexterror - 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 © 2012 Oracle Corporation. All Rights Reserved.