org.webbitserver.rest
Interface UriTemplateProcessor

All Known Implementing Classes:
FuriProcessor

public interface UriTemplateProcessor

Abstract representation of an URI-template engine.


Method Summary
 String expand(String uriTemplate, Map<String,Object> parameters)
           
 String expand(String uriTemplate, String[] keyValuePairs)
           
 Map<String,Object> extract(String uriTemplate, String uri)
          Extracts variables from a uri, matching against an URI template
 

Method Detail

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 against
uri - the URI
Returns:
the matched variables, or null if there was no match


Copyright © 2012. All Rights Reserved.