public class TemplateSet<T> extends Object
| Constructor and Description |
|---|
TemplateSet() |
| Modifier and Type | Method and Description |
|---|---|
T |
lookup(Map<String,String> bindings,
String path,
javax.ws.rs.core.MultivaluedMap<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, javax.ws.rs.core.MultivaluedMap<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 © 2019. All rights reserved.