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 particularHttpRequest. Usually the mapped object will be a request handler to process the request.- Since:
- 5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tresolve(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
nullif no match is found. - Throws:
HttpException
-
-