Class HttpServerFilter

java.lang.Object
org.glassfish.grizzly.filterchain.BaseFilter
org.glassfish.grizzly.http.server.HttpServerFilter
All Implemented Interfaces:
org.glassfish.grizzly.filterchain.Filter, org.glassfish.grizzly.monitoring.MonitoringAware<HttpServerProbe>

public class HttpServerFilter extends org.glassfish.grizzly.filterchain.BaseFilter implements org.glassfish.grizzly.monitoring.MonitoringAware<HttpServerProbe>
Filter implementation to provide high-level HTTP request/response processing.
  • Field Details

    • monitoringConfig

      protected final org.glassfish.grizzly.monitoring.DefaultMonitoringConfig<HttpServerProbe> monitoringConfig
      Web server probes
  • Constructor Details

    • HttpServerFilter

      public HttpServerFilter(ServerFilterConfiguration config, org.glassfish.grizzly.utils.DelayedExecutor delayedExecutor)
  • Method Details

    • getHttpHandler

      public HttpHandler getHttpHandler()
    • setHttpHandler

      public void setHttpHandler(HttpHandler httpHandler)
    • getConfiguration

      public ServerFilterConfiguration getConfiguration()
    • handleRead

      public org.glassfish.grizzly.filterchain.NextAction handleRead(org.glassfish.grizzly.filterchain.FilterChainContext ctx) throws IOException
      Specified by:
      handleRead in interface org.glassfish.grizzly.filterchain.Filter
      Overrides:
      handleRead in class org.glassfish.grizzly.filterchain.BaseFilter
      Throws:
      IOException
    • exceptionOccurred

      public void exceptionOccurred(org.glassfish.grizzly.filterchain.FilterChainContext ctx, Throwable error)
      Override the default implementation to notify the ReadHandler, if available, of any read error that has occurred during processing.
      Specified by:
      exceptionOccurred in interface org.glassfish.grizzly.filterchain.Filter
      Overrides:
      exceptionOccurred in class org.glassfish.grizzly.filterchain.BaseFilter
      Parameters:
      ctx - event processing FilterChainContext
      error - error, which occurred during FilterChain execution
    • getMonitoringConfig

      public org.glassfish.grizzly.monitoring.MonitoringConfig<HttpServerProbe> getMonitoringConfig()
      Specified by:
      getMonitoringConfig in interface org.glassfish.grizzly.monitoring.MonitoringAware<HttpServerProbe>
    • prepareForShutdown

      public void prepareForShutdown(org.glassfish.grizzly.CompletionHandler<HttpServerFilter> shutdownCompletionHandler)
      Method, which might be optionally called to prepare the filter for shutdown.
      Parameters:
      shutdownCompletionHandler - CompletionHandler to be notified, when shutdown could be gracefully completed
    • createJmxManagementObject

      protected Object createJmxManagementObject()
    • onTraceRequest

      protected void onTraceRequest(Request request, Response response) throws IOException
      Throws:
      IOException
    • getFullServerName

      protected String getFullServerName()