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 java.lang.Object |
createJmxManagementObject() |
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. |
ServerFilterConfiguration |
getConfiguration() |
protected java.lang.String |
getFullServerName() |
HttpHandler |
getHttpHandler() |
MonitoringConfig<HttpServerProbe> |
getMonitoringConfig()
Return the object associated
MonitoringConfig. |
NextAction |
handleEvent(FilterChainContext ctx,
FilterChainEvent event)
Handle custom event associated with the
Connection. |
NextAction |
handleRead(FilterChainContext ctx)
Execute a unit of processing work to be performed, when channel will
become available for reading.
|
protected void |
onTraceRequest(Request request,
Response response) |
void |
setHttpHandler(HttpHandler httpHandler) |
createContext, handleAccept, handleClose, handleConnect, 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 java.io.IOException
BaseFilterFilter may either complete the required processing and
return false, or delegate remaining processing to the next
Filter in a FilterChain containing this Filter
by returning true.handleRead in interface FilterhandleRead in class BaseFilterctx - FilterChainContextNextAction instruction for FilterChain, how it
should continue the executionjava.io.IOExceptionpublic void exceptionOccurred(FilterChainContext ctx, java.lang.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 NextAction handleEvent(FilterChainContext ctx, FilterChainEvent event) throws java.io.IOException
BaseFilterConnection.
This Filter may either complete the required processing and
return StopAction, or delegate remaining processing to the next
Filter in a FilterChain containing this Filter
by returning InvokeAction.handleEvent in interface FilterhandleEvent in class BaseFilterctx - FilterChainContextNextAction instruction for FilterChain, how it
should continue the executionjava.io.IOExceptionpublic MonitoringConfig<HttpServerProbe> getMonitoringConfig()
MonitoringConfig.getMonitoringConfig in interface MonitoringAware<HttpServerProbe>MonitoringConfig.protected java.lang.Object createJmxManagementObject()
protected void onTraceRequest(Request request, Response response) throws java.io.IOException
java.io.IOExceptionprotected java.lang.String getFullServerName()
Copyright © 2012–2022 Oracle Corporation. All rights reserved.