@Contract(threading=SAFE) public class UriHttpAsyncRequestHandlerMapper extends Object implements HttpAsyncRequestHandlerMapper
*
*<uri>
<uri>*
HttpAsyncRequestHandler
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 |
---|
UriHttpAsyncRequestHandlerMapper() |
Modifier and Type | Method and Description |
---|---|
HttpAsyncRequestHandler<?> |
lookup(HttpRequest request)
Looks up a handler matching the given request URI.
|
void |
register(String pattern,
HttpAsyncRequestHandler<?> handler)
Registers the given
HttpAsyncRequestHandler 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, 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 HttpAsyncRequestHandler<?> lookup(HttpRequest request)
lookup
in interface HttpAsyncRequestHandlerMapper
request
- the requestnull
if no match is found.Copyright © 2010 - 2020 Adobe. All Rights Reserved