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