Class HttpServerFilter

All Implemented Interfaces:
Filter, MonitoringAware<HttpProbe>

public class HttpServerFilter extends HttpCodecFilter
Server side HttpCodecFilter implementation, which is responsible for decoding HttpRequestPacket and encoding HttpResponsePacket messages. This Filter is usually used, when we build an asynchronous HTTP server connection.
Author:
Alexey Stashok
See Also:
  • Field Details

    • HTTP_SERVER_REQUEST_ATTR_NAME

      public static final String HTTP_SERVER_REQUEST_ATTR_NAME
    • RESPONSE_COMPLETE_EVENT

      public static final FilterChainEvent RESPONSE_COMPLETE_EVENT
  • Constructor Details

    • HttpServerFilter

      @Deprecated public HttpServerFilter()
      Deprecated.
      Next major release will include builders for filters requiring configuration. Constructors will be hidden.
      Constructor, which creates HttpServerFilter instance
    • HttpServerFilter

      @Deprecated public HttpServerFilter(boolean chunkingEnabled, int maxHeadersSize, KeepAlive keepAlive, DelayedExecutor executor)
      Deprecated.
      Next major release will include builders for filters requiring configuration. Constructors will be hidden.
      Constructor, which creates HttpServerFilter instance, with the specific max header size parameter.
      Parameters:
      chunkingEnabled - flag indicating whether or not chunking should be allowed or not.
      maxHeadersSize - the maximum size of an inbound HTTP message header.
      keepAlive - keep-alive configuration for this filter instance.
      executor - DelayedExecutor for handling keep-alive.
    • HttpServerFilter

      @Deprecated public HttpServerFilter(boolean chunkingEnabled, int maxHeadersSize, String defaultResponseContentType, KeepAlive keepAlive, DelayedExecutor executor)
      Deprecated.
      Next major release will include builders for filters requiring configuration. Constructors will be hidden.
      Constructor, which creates HttpServerFilter instance, with the specific max header size parameter.
      Parameters:
      chunkingEnabled - flag indicating whether or not chunking should be allowed or not.
      maxHeadersSize - the maximum size of an inbound HTTP message header.
      defaultResponseContentType - the content type that the response should use if no content had been specified at the time the response is committed.
      keepAlive - keep-alive configuration for this filter instance.
      executor - DelayedExecutor for handling keep-alive. If null - keep-alive idle connections should be managed outside HttpServerFilter.
    • HttpServerFilter

      @Deprecated public HttpServerFilter(boolean chunkingEnabled, int maxHeadersSize, String defaultResponseContentType, KeepAlive keepAlive, DelayedExecutor executor, int maxRequestHeaders, int maxResponseHeaders)
      Deprecated.
      Next major release will include builders for filters requiring configuration. Constructors will be hidden.
      Constructor, which creates HttpServerFilter instance, with the specific max header size parameter.
      Parameters:
      chunkingEnabled - flag indicating whether or not chunking should be allowed or not.
      maxHeadersSize - the maximum size of an inbound HTTP message header.
      defaultResponseContentType - the content type that the response should use if no content had been specified at the time the response is committed.
      keepAlive - keep-alive configuration for this filter instance.
      executor - DelayedExecutor for handling keep-alive. If null - keep-alive idle connections should be managed outside HttpServerFilter.
      maxRequestHeaders - maximum number of request headers allowed for a single request.
      maxResponseHeaders - maximum number of response headers allowed for a single response.
      Since:
      2.2.11
  • Method Details