UriHttpAsyncRequestHandlerMapper
@Deprecated public class NHttpRequestHandlerRegistry extends java.lang.Object implements NHttpRequestHandlerResolver
*
*<uri>
<uri>*
NHttpRequestHandler
matching a particular request URI. Usually the
resolved request handler will be used to process the request with the
specified request URI.Modifier and Type | Field and Description |
---|---|
private UriPatternMatcher<NHttpRequestHandler> |
matcher
Deprecated.
|
Constructor and Description |
---|
NHttpRequestHandlerRegistry()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,NHttpRequestHandler> |
getHandlers()
Deprecated.
Get the handler map.
|
NHttpRequestHandler |
lookup(java.lang.String requestURI)
Deprecated.
Looks up a handler matching the given request URI.
|
void |
register(java.lang.String pattern,
NHttpRequestHandler handler)
Deprecated.
Registers the given
NHttpRequestHandler as a handler for URIs
matching the given pattern. |
void |
setHandlers(java.util.Map<java.lang.String,NHttpRequestHandler> map)
Deprecated.
Sets handlers from the given map.
|
void |
unregister(java.lang.String pattern)
Deprecated.
Removes registered handler, if exists, for the given pattern.
|
private final UriPatternMatcher<NHttpRequestHandler> matcher
public void register(java.lang.String pattern, NHttpRequestHandler handler)
NHttpRequestHandler
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,NHttpRequestHandler> map)
map
- the map containing handlers keyed by their URI patterns.public java.util.Map<java.lang.String,NHttpRequestHandler> getHandlers()
public NHttpRequestHandler lookup(java.lang.String requestURI)
NHttpRequestHandlerResolver
lookup
in interface NHttpRequestHandlerResolver
requestURI
- the request URInull
if no match
is found.