@Contract(threading=SAFE) public class UriHttpRequestHandlerMapper extends Object implements HttpRequestHandlerMapper
**<uri><uri>*HttpRequestHandler matching a particular request URI. Usually the
mapped request handler will be used to process the request with the
specified request URI.| Constructor and Description |
|---|
UriHttpRequestHandlerMapper() |
| Modifier and Type | Method and Description |
|---|---|
HttpRequestHandler |
lookup(HttpRequest request)
Looks up a handler matching the given request URI.
|
void |
register(String pattern,
HttpRequestHandler handler)
Registers the given
HttpRequestHandler as a handler for URIs
matching the given pattern. |
void |
unregister(String pattern)
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 HttpRequestHandler lookup(HttpRequest request)
lookup in interface HttpRequestHandlerMapperrequest - the requestnull if no match is found.Copyright © 2010 - 2020 Adobe. All Rights Reserved