public class MatchSearcher<T> extends Object
Constructor and Description |
---|
MatchSearcher() |
Modifier and Type | Method and Description |
---|---|
T |
lookup(Map<String,String> bindings,
String path,
MultiMap<String,String> queryParams)
Search the collection for the most specific entry that
matches
path . |
void |
register(String path,
T result)
Add the template
path to the collection, associated
with the supplied result value. |
List<String> |
templates() |
void |
unregister(String path)
Remove the entry with the given template path from
the collection.
|
public void register(String path, T result)
path
to the collection, associated
with the supplied result value.public void unregister(String path)
public T lookup(Map<String,String> bindings, String path, MultiMap<String,String> queryParams)
path
. If there isn't one, return null.
If there is, return the associated value, and update the
bindings with the matches variables.Copyright © 2014. All Rights Reserved.