Constructor and Description |
---|
UriPatternMatcher() |
Modifier and Type | Method and Description |
---|---|
Map<String,T> |
getObjects()
Deprecated.
(4.1) do not use
|
T |
lookup(String path)
Looks up an object matching the given request path.
|
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 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.Copyright © 2010 - 2020 Adobe. All Rights Reserved