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
FieldsModifier and TypeFieldDescriptionprotected final DefaultMonitoringConfig<HttpServerProbe>Web server probes -
Constructor Summary
ConstructorsConstructorDescriptionHttpServerFilter(ServerFilterConfiguration config, DelayedExecutor delayedExecutor) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectvoidexceptionOccurred(FilterChainContext ctx, Throwable error) Override the default implementation to notify theReadHandler, if available, of any read error that has occurred during processing.protected StringReturn 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 voidonTraceRequest(Request request, Response response) voidsetHttpHandler(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:BaseFilterExecute a unit of processing work to be performed, when channel will become available for reading. ThisFiltermay either complete the required processing and return false, or delegate remaining processing to the nextFilterin aFilterChaincontaining thisFilterby returning true.- Specified by:
handleReadin interfaceFilter- Overrides:
handleReadin classBaseFilter- Parameters:
ctx-FilterChainContext- Returns:
NextActioninstruction 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:
exceptionOccurredin interfaceFilter- Overrides:
exceptionOccurredin classBaseFilter- Parameters:
ctx- event processingFilterChainContexterror- error, which occurred during FilterChain execution
-
handleEvent
Description copied from class:BaseFilterHandle custom event associated with theConnection. ThisFiltermay either complete the required processing and returnStopAction, or delegate remaining processing to the nextFilterin aFilterChaincontaining thisFilterby returningInvokeAction.- Specified by:
handleEventin interfaceFilter- Overrides:
handleEventin classBaseFilter- Parameters:
ctx-FilterChainContext- Returns:
NextActioninstruction forFilterChain, how it should continue the execution- Throws:
IOException
-
getMonitoringConfig
Return the object associatedMonitoringConfig.- Specified by:
getMonitoringConfigin interfaceMonitoringAware<HttpServerProbe>- Returns:
- the object associated
MonitoringConfig.
-
createJmxManagementObject
-
onTraceRequest
- Throws:
IOException
-
getFullServerName
-