public class UriTemplate extends Object
/dashboards/{dashboardId}/gadgets/{gadgetId} is a URI template with 2 parameters,
dashboardId and gadgetId.| Constructor and Description |
|---|
UriTemplate(String uriTemplate) |
public UriTemplate(String uriTemplate)
public boolean matches(String uri)
true if the URI matches this template, false.uri - URI to check against the templatetrue if the URI matches this template, false otherwise.public Map<String,String> extractParameters(String uri)
Map of parameter names and their values.uri - URI which matches this templateMap of parameter names and their valuesIllegalArgumentException - if uri does not match this templateCopyright © 2013 Atlassian. All Rights Reserved.