Package 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
Modifier and TypeMethodDescriptionresolve
(HttpRequest request, HttpContext context) Resolves a handler matching the given request.
-
Method Details
-
resolve
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
-