Top Description Methods
org.apache.hc.core5.http

public Interface HttpRequestMapper<T>

Known Direct Implementers
org.apache.hc.core5.http.protocol.RequestHandlerRegistry
Imports
org.apache.hc.core5.http.protocol.HttpContext

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

Modifier and TypeMethod and Description
public T

Returns:

HTTP request handler or null if no match is found.
resolve
(HttpRequest
the request to map to a handler
request
,
HttpContext context)

Resolves a handler matching the given request.

Method Detail

resolveback to summary
public T resolve(HttpRequest request, HttpContext context) throws HttpException

Resolves a handler matching the given request.

Parameters
request:HttpRequest

the request to map to a handler

Returns:T

HTTP request handler or null if no match is found.