public class HttpServerFilter extends BaseFilter implements JmxMonitoringAware<HttpServerProbe>
Modifier and Type | Field and Description |
---|---|
protected AbstractJmxMonitoringConfig<HttpServerProbe> |
monitoringConfig
Web server probes
|
Constructor and Description |
---|
HttpServerFilter(ServerFilterConfiguration config,
DelayedExecutor delayedExecutor) |
Modifier and Type | Method and Description |
---|---|
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. |
ServerFilterConfiguration |
getConfiguration() |
HttpHandler |
getHttpHandler() |
JmxMonitoringConfig<HttpServerProbe> |
getMonitoringConfig()
Return the object associated
JmxMonitoringConfig . |
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, getFilterChain, getIndex, handleAccept, handleClose, handleConnect, handleEvent, handleWrite, onAdded, onFilterChainChanged, onRemoved
protected final AbstractJmxMonitoringConfig<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
BaseFilter
Filter
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 Filter
handleRead
in class BaseFilter
ctx
- FilterChainContext
NextAction
instruction for FilterChain
, how it
should continue the executionIOException
public void exceptionOccurred(FilterChainContext ctx, Throwable error)
ReadHandler
,
if available, of any read error that has occurred during processing.exceptionOccurred
in interface Filter
exceptionOccurred
in class BaseFilter
ctx
- event processing FilterChainContext
error
- error, which occurred during FilterChain executionpublic JmxMonitoringConfig<HttpServerProbe> getMonitoringConfig()
JmxMonitoringConfig
.getMonitoringConfig
in interface JmxMonitoringAware<HttpServerProbe>
getMonitoringConfig
in interface MonitoringAware<HttpServerProbe>
JmxMonitoringConfig
.protected JmxObject createJmxManagementObject()
protected void onTraceRequest(Request request, Response response) throws IOException
IOException
Copyright © 2013 Oracle Corporation. All Rights Reserved.