UriHttpAsyncRequestHandlerMapper
@Contract(threading=SAFE) @Deprecated public class HttpAsyncRequestHandlerRegistry extends java.lang.Object implements HttpAsyncRequestHandlerResolver
*
*<uri>
<uri>*
HttpAsyncRequestHandler
matching a particular request URI. Usually the resolved request handler
will be used to process the request with the specified request URI.Modifier and Type | Field and Description |
---|---|
private UriPatternMatcher<HttpAsyncRequestHandler<?>> |
matcher
Deprecated.
|
Constructor and Description |
---|
HttpAsyncRequestHandlerRegistry()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,HttpAsyncRequestHandler<?>> |
getHandlers()
Deprecated.
Get the handler map.
|
HttpAsyncRequestHandler<?> |
lookup(java.lang.String requestURI)
Deprecated.
Looks up a handler matching the given request URI.
|
void |
register(java.lang.String pattern,
HttpAsyncRequestHandler<?> handler)
Deprecated.
Registers the given
HttpAsyncRequestHandler as a handler for URIs
matching the given pattern. |
void |
setHandlers(java.util.Map<java.lang.String,HttpAsyncRequestHandler<?>> map)
Deprecated.
Sets handlers from the given map.
|
void |
unregister(java.lang.String pattern)
Deprecated.
Removes registered handler, if exists, for the given pattern.
|
private final UriPatternMatcher<HttpAsyncRequestHandler<?>> matcher
public HttpAsyncRequestHandlerRegistry()
public void register(java.lang.String pattern, HttpAsyncRequestHandler<?> handler)
HttpAsyncRequestHandler
as a handler for URIs
matching the given pattern.pattern
- the pattern to register the handler for.handler
- the handler.public void unregister(java.lang.String pattern)
pattern
- the pattern to unregister the handler for.public void setHandlers(java.util.Map<java.lang.String,HttpAsyncRequestHandler<?>> map)
map
- the map containing handlers keyed by their URI patterns.public java.util.Map<java.lang.String,HttpAsyncRequestHandler<?>> getHandlers()
public HttpAsyncRequestHandler<?> lookup(java.lang.String requestURI)
HttpAsyncRequestHandlerResolver
lookup
in interface HttpAsyncRequestHandlerResolver
requestURI
- the request URInull
if no match
is found.