Class HttpServerFilter
java.lang.Object
org.glassfish.grizzly.filterchain.BaseFilter
org.glassfish.grizzly.http.server.HttpServerFilter
- All Implemented Interfaces:
Filter
,MonitoringAware<HttpServerProbe>
Filter implementation to provide high-level HTTP request/response processing.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final DefaultMonitoringConfig<HttpServerProbe>
Web server probes -
Constructor Summary
ConstructorDescriptionHttpServerFilter
(ServerFilterConfiguration config, DelayedExecutor delayedExecutor) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
void
exceptionOccurred
(FilterChainContext ctx, Throwable error) Override the default implementation to notify theReadHandler
, if available, of any read error that has occurred during processing.protected String
Return the object associatedMonitoringConfig
.handleEvent
(FilterChainContext ctx, FilterChainEvent event) Handle custom event associated with theConnection
.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) Methods inherited from class org.glassfish.grizzly.filterchain.BaseFilter
createContext, handleAccept, handleClose, handleConnect, handleWrite, onAdded, onFilterChainChanged, onRemoved, toString
-
Field Details
-
monitoringConfig
Web server probes
-
-
Constructor Details
-
HttpServerFilter
-
-
Method Details
-
getHttpHandler
-
setHttpHandler
-
getConfiguration
-
handleRead
Description copied from class:BaseFilter
Execute a unit of processing work to be performed, when channel will become available for reading. ThisFilter
may either complete the required processing and return false, or delegate remaining processing to the nextFilter
in aFilterChain
containing thisFilter
by returning true.- Specified by:
handleRead
in interfaceFilter
- Overrides:
handleRead
in classBaseFilter
- Parameters:
ctx
-FilterChainContext
- Returns:
NextAction
instruction forFilterChain
, how it should continue the execution- Throws:
IOException
-
exceptionOccurred
Override the default implementation to notify theReadHandler
, if available, of any read error that has occurred during processing.- Specified by:
exceptionOccurred
in interfaceFilter
- Overrides:
exceptionOccurred
in classBaseFilter
- Parameters:
ctx
- event processingFilterChainContext
error
- error, which occurred during FilterChain execution
-
handleEvent
Description copied from class:BaseFilter
Handle custom event associated with theConnection
. ThisFilter
may either complete the required processing and returnStopAction
, or delegate remaining processing to the nextFilter
in aFilterChain
containing thisFilter
by returningInvokeAction
.- Specified by:
handleEvent
in interfaceFilter
- Overrides:
handleEvent
in classBaseFilter
- Parameters:
ctx
-FilterChainContext
- Returns:
NextAction
instruction forFilterChain
, how it should continue the execution- Throws:
IOException
-
getMonitoringConfig
Return the object associatedMonitoringConfig
.- Specified by:
getMonitoringConfig
in interfaceMonitoringAware<HttpServerProbe>
- Returns:
- the object associated
MonitoringConfig
.
-
createJmxManagementObject
-
onTraceRequest
- Throws:
IOException
-
getFullServerName
-