org.apache.hc.core5.http

## Interface HttpRequestMapper<T>

- All Known Implementing Classes:
    RequestHandlerRegistry

      public interface HttpRequestMapper<T>

  This class can be used to resolve an object matching a particular `HttpRequest`. Usually the mapped object will be a request handler to process the request.
  Since:
    5.0

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `resolve(HttpRequest request, HttpContext context)` Resolves a handler matching the given request.

- - ### Method Detail

    - #### resolve

          T resolve(HttpRequest request,
                  HttpContext context)
                    throws HttpException

      Resolves a handler matching the given request.
      Parameters:
        `request` - the request to map to a handler
      Returns:
        HTTP request handler or `null` if no match is found.
      Throws:
        `HttpException`

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