T - The type of registered objects.@Contract(threading=SAFE) public class UriPatternMatcher<T> extends Object
**<uri><uri>*| Constructor and Description | 
|---|
| UriPatternMatcher() | 
| Modifier and Type | Method and Description | 
|---|---|
| Set<Map.Entry<String,T>> | entrySet()Returns a  Setview of the mappings contained in this matcher. | 
| Map<String,T> | getObjects()Deprecated. 
 (4.1) do not use | 
| T | lookup(String path)Looks up an object matching the given request path. | 
| protected boolean | matchUriRequestPattern(String pattern,
                      String path)Tests if the given request path matches the given pattern. | 
| void | register(String pattern,
        T obj)Registers the given object for URIs matching the given pattern. | 
| void | setHandlers(Map<String,T> map)Deprecated. 
 (4.1) do not use | 
| void | setObjects(Map<String,T> map)Deprecated. 
 (4.1) do not use | 
| String | toString() | 
| void | unregister(String pattern)Removes registered object, if exists, for the given pattern. | 
public Set<Map.Entry<String,T>> entrySet()
Set view of the mappings contained in this matcher.Map.entrySet()public void register(String pattern, T obj)
pattern - the pattern to register the handler for.obj - the object.public void unregister(String pattern)
pattern - the pattern to unregister.@Deprecated public void setHandlers(Map<String,T> map)
@Deprecated public void setObjects(Map<String,T> map)
@Deprecated public Map<String,T> getObjects()
public T lookup(String path)
path - the request pathnull if no match is found.protected boolean matchUriRequestPattern(String pattern, String path)
pattern - the patternpath - the request pathtrue if the request URI matches the pattern,
   false otherwise.Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.