org.webbitserver.rest
Interface UriTemplateProcessor
- All Known Implementing Classes:
- FuriProcessor
public interface UriTemplateProcessor
Abstract representation of an URI-template engine.
expand
String expand(String uriTemplate,
String[] keyValuePairs)
expand
String expand(String uriTemplate,
Map<String,Object> parameters)
extract
Map<String,Object> extract(String uriTemplate,
String uri)
- Extracts variables from a uri, matching against an URI template
- Parameters:
uriTemplate - template to match againsturi - the URI
- Returns:
- the matched variables, or null if there was no match
Copyright © 2012. All Rights Reserved.