UriHttpAsyncRequestHandlerMapper@Contract(threading=SAFE) @Deprecated public class HttpAsyncRequestHandlerRegistry extends 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.| Constructor and Description |
|---|
HttpAsyncRequestHandlerRegistry()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,HttpAsyncRequestHandler<?>> |
getHandlers()
Deprecated.
Get the handler map.
|
HttpAsyncRequestHandler<?> |
lookup(String requestURI)
Deprecated.
Looks up a handler matching the given request URI.
|
void |
register(String pattern,
HttpAsyncRequestHandler<?> handler)
Deprecated.
Registers the given
HttpAsyncRequestHandler as a handler for URIs
matching the given pattern. |
void |
setHandlers(Map<String,HttpAsyncRequestHandler<?>> map)
Deprecated.
Sets handlers from the given map.
|
void |
unregister(String pattern)
Deprecated.
Removes registered handler, if exists, for the given pattern.
|
public HttpAsyncRequestHandlerRegistry()
public void register(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(String pattern)
pattern - the pattern to unregister the handler for.public void setHandlers(Map<String,HttpAsyncRequestHandler<?>> map)
map - the map containing handlers keyed by their URI patterns.public Map<String,HttpAsyncRequestHandler<?>> getHandlers()
public HttpAsyncRequestHandler<?> lookup(String requestURI)
HttpAsyncRequestHandlerResolverlookup in interface HttpAsyncRequestHandlerResolverrequestURI - the request URInull if no match
is found.Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.