public class UriPatternMatcher extends Object
*
*<uri>
<uri>*
Constructor and Description |
---|
UriPatternMatcher() |
Modifier and Type | Method and Description |
---|---|
Object |
lookup(String requestURI)
Looks up an object matching the given request URI.
|
protected boolean |
matchUriRequestPattern(String pattern,
String requestUri)
Tests if the given request URI matches the given pattern.
|
void |
register(String pattern,
Object obj)
Registers the given object for URIs matching the given pattern.
|
void |
setHandlers(Map map)
Deprecated.
use
setObjects(Map) |
void |
setObjects(Map map)
Sets objects from the given map.
|
void |
unregister(String pattern)
Removes registered object, if exists, for the given pattern.
|
public void register(String pattern, Object obj)
pattern
- the pattern to register the handler for.obj
- the object.public void unregister(String pattern)
pattern
- the pattern to unregister.public void setHandlers(Map map)
setObjects(Map)
public void setObjects(Map map)
map
- the map containing objects keyed by their URI patterns.public Object lookup(String requestURI)
requestURI
- the request URInull
if no match is found.Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.