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