public class HttpServerFilter extends org.glassfish.grizzly.filterchain.BaseFilter implements org.glassfish.grizzly.monitoring.MonitoringAware<HttpServerProbe>
| Modifier and Type | Field and Description |
|---|---|
protected org.glassfish.grizzly.monitoring.DefaultMonitoringConfig<HttpServerProbe> |
monitoringConfig
Web server probes
|
| Constructor and Description |
|---|
HttpServerFilter(ServerFilterConfiguration config,
org.glassfish.grizzly.utils.DelayedExecutor delayedExecutor) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
createJmxManagementObject() |
void |
exceptionOccurred(org.glassfish.grizzly.filterchain.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() |
protected String |
getFullServerName() |
HttpHandler |
getHttpHandler() |
org.glassfish.grizzly.monitoring.MonitoringConfig<HttpServerProbe> |
getMonitoringConfig() |
org.glassfish.grizzly.filterchain.NextAction |
handleRead(org.glassfish.grizzly.filterchain.FilterChainContext ctx) |
protected void |
onTraceRequest(Request request,
Response response) |
void |
prepareForShutdown(org.glassfish.grizzly.CompletionHandler<HttpServerFilter> shutdownCompletionHandler)
Method, which might be optionally called to prepare the filter for
shutdown.
|
void |
setHttpHandler(HttpHandler httpHandler) |
protected final org.glassfish.grizzly.monitoring.DefaultMonitoringConfig<HttpServerProbe> monitoringConfig
public HttpServerFilter(ServerFilterConfiguration config, org.glassfish.grizzly.utils.DelayedExecutor delayedExecutor)
public HttpHandler getHttpHandler()
public void setHttpHandler(HttpHandler httpHandler)
public ServerFilterConfiguration getConfiguration()
public org.glassfish.grizzly.filterchain.NextAction handleRead(org.glassfish.grizzly.filterchain.FilterChainContext ctx)
throws IOException
handleRead in interface org.glassfish.grizzly.filterchain.FilterhandleRead in class org.glassfish.grizzly.filterchain.BaseFilterIOExceptionpublic void exceptionOccurred(org.glassfish.grizzly.filterchain.FilterChainContext ctx,
Throwable error)
ReadHandler,
if available, of any read error that has occurred during processing.exceptionOccurred in interface org.glassfish.grizzly.filterchain.FilterexceptionOccurred in class org.glassfish.grizzly.filterchain.BaseFilterctx - event processing FilterChainContexterror - error, which occurred during FilterChain executionpublic org.glassfish.grizzly.monitoring.MonitoringConfig<HttpServerProbe> getMonitoringConfig()
getMonitoringConfig in interface org.glassfish.grizzly.monitoring.MonitoringAware<HttpServerProbe>public void prepareForShutdown(org.glassfish.grizzly.CompletionHandler<HttpServerFilter> shutdownCompletionHandler)
shutdownCompletionHandler - CompletionHandler to be notified,
when shutdown could be gracefully completedprotected Object createJmxManagementObject()
protected void onTraceRequest(Request request, Response response) throws IOException
IOExceptionprotected String getFullServerName()
Copyright © 2019 Oracle Corporation. All Rights Reserved.