Class RequestHandlerRegistry<T>
- java.lang.Object
-
- org.apache.hc.core5.http.protocol.RequestHandlerRegistry<T>
-
- Type Parameters:
T- request handler type.
- All Implemented Interfaces:
HttpRequestMapper<T>
@Contract(threading=SAFE_CONDITIONAL) @Deprecated public class RequestHandlerRegistry<T> extends java.lang.Object implements HttpRequestMapper<T>
Deprecated.UseRequestRouter.Generic registry of request handlers that can be resolved by properties of request messages.- Since:
- 5.0
-
-
Constructor Summary
Constructors Constructor Description RequestHandlerRegistry()Deprecated.RequestHandlerRegistry(java.lang.String canonicalHostName, Supplier<LookupRegistry<T>> registrySupplier)Deprecated.RequestHandlerRegistry(java.lang.String canonicalHostName, UriPatternType patternType)Deprecated.RequestHandlerRegistry(UriPatternType patternType)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidregister(java.lang.String hostname, java.lang.String uriPattern, T object)Deprecated.Tresolve(HttpRequest request, HttpContext context)Deprecated.Resolves a handler matching the given request.
-
-
-
Constructor Detail
-
RequestHandlerRegistry
public RequestHandlerRegistry(java.lang.String canonicalHostName, Supplier<LookupRegistry<T>> registrySupplier)Deprecated.
-
RequestHandlerRegistry
public RequestHandlerRegistry(java.lang.String canonicalHostName, UriPatternType patternType)Deprecated.
-
RequestHandlerRegistry
public RequestHandlerRegistry(UriPatternType patternType)
Deprecated.
-
RequestHandlerRegistry
public RequestHandlerRegistry()
Deprecated.
-
-
Method Detail
-
resolve
public T resolve(HttpRequest request, HttpContext context) throws MisdirectedRequestException
Deprecated.Description copied from interface:HttpRequestMapperResolves a handler matching the given request.- Specified by:
resolvein interfaceHttpRequestMapper<T>- Parameters:
request- the request to map to a handler- Returns:
- HTTP request handler or
nullif no match is found. - Throws:
MisdirectedRequestException
-
register
public void register(java.lang.String hostname, java.lang.String uriPattern, T object)Deprecated.
-
-