org.apache.hc.core5.http.io

## Interface HttpFilterHandler

- All Known Implementing Classes:
    AbstractHttpServerAuthFilter, HttpServerExpectationFilter, TerminalServerFilter

      @Contract(threading=STATELESS)
      public interface HttpFilterHandler

  HttpFilterHandler represents a routine for handling all incoming requests in the server side request processing chain.
  Since:
    5.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `handle(ClassicHttpRequest request, HttpFilterChain.ResponseTrigger responseTrigger, HttpContext context, HttpFilterChain chain)` Processes the incoming HTTP request and if processing has been completed submits a final response to the client.

- - ### Method Detail

    - #### handle

          void handle(ClassicHttpRequest request,
                      HttpFilterChain.ResponseTrigger responseTrigger,
                      HttpContext context,
                      HttpFilterChain chain)
               throws HttpException,
                      IOException

      Processes the incoming HTTP request and if processing has been completed submits a final response to the client. The handler must not use the response trigger after passing control to the next filter with the `HttpFilterChain.proceed(ClassicHttpRequest, HttpFilterChain.ResponseTrigger, HttpContext)` method.
      Parameters:
        `request` - the actual request.
        `responseTrigger` - the response trigger.
        `context` - the actual execution context.
        `chain` - the next element in the request processing chain.
      Throws:
        `HttpException` - in case of an HTTP protocol violation.
        `IOException` - in case of an I/O error.

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.