T
- request handler type.RequestRouter
.@Contract(threading=SAFE_CONDITIONAL) @Deprecated public class RequestHandlerRegistry<T> extends Object implements HttpRequestMapper<T>
Constructor and Description |
---|
RequestHandlerRegistry()
Deprecated.
|
RequestHandlerRegistry(String canonicalHostName,
Supplier<LookupRegistry<T>> registrySupplier)
Deprecated.
|
RequestHandlerRegistry(String canonicalHostName,
UriPatternType patternType)
Deprecated.
|
RequestHandlerRegistry(UriPatternType patternType)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
register(String hostname,
String uriPattern,
T object)
Deprecated.
|
T |
resolve(HttpRequest request,
HttpContext context)
Deprecated.
Resolves a handler matching the given request.
|
public RequestHandlerRegistry(String canonicalHostName, Supplier<LookupRegistry<T>> registrySupplier)
public RequestHandlerRegistry(String canonicalHostName, UriPatternType patternType)
public RequestHandlerRegistry(UriPatternType patternType)
public RequestHandlerRegistry()
public T resolve(HttpRequest request, HttpContext context) throws MisdirectedRequestException
HttpRequestMapper
resolve
in interface HttpRequestMapper<T>
request
- the request to map to a handlernull
if no match is found.MisdirectedRequestException
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.