UriHttpRequestHandlerMapper@ThreadSafe @Deprecated public class HttpRequestHandlerRegistry extends java.lang.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.| 构造器和说明 |
|---|
HttpRequestHandlerRegistry()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.Map<java.lang.String,HttpRequestHandler> |
getHandlers()
已过时。
Get the handler map.
|
HttpRequestHandler |
lookup(java.lang.String requestURI)
已过时。
Looks up a handler matching the given request URI.
|
void |
register(java.lang.String pattern,
HttpRequestHandler handler)
已过时。
Registers the given
HttpRequestHandler as a handler for URIs
matching the given pattern. |
void |
setHandlers(java.util.Map<java.lang.String,HttpRequestHandler> map)
已过时。
Sets handlers from the given map.
|
void |
unregister(java.lang.String pattern)
已过时。
Removes registered handler, if exists, for the given pattern.
|
public void register(java.lang.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(java.lang.String pattern)
pattern - the pattern to unregister the handler for.public void setHandlers(java.util.Map<java.lang.String,HttpRequestHandler> map)
map - the map containing handlers keyed by their URI patterns.public java.util.Map<java.lang.String,HttpRequestHandler> getHandlers()
public HttpRequestHandler lookup(java.lang.String requestURI)
HttpRequestHandlerResolverlookup 在接口中 HttpRequestHandlerResolverrequestURI - the request URInull if no match
is found.