org.webbitserver.rest.furi
Class FuriProcessor

java.lang.Object
  extended by org.webbitserver.rest.furi.FuriProcessor
All Implemented Interfaces:
UriTemplateProcessor

public class FuriProcessor
extends Object
implements UriTemplateProcessor


Constructor Summary
FuriProcessor()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FuriProcessor

public FuriProcessor()
Method Detail

expand

public String expand(String uriTemplate,
                     String[] keyValuePairs)
Specified by:
expand in interface UriTemplateProcessor

expand

public String expand(String uriTemplate,
                     Map<String,Object> parameters)
Specified by:
expand in interface UriTemplateProcessor

extract

public Map<String,Object> extract(String uriTemplate,
                                  String uri)
Description copied from interface: UriTemplateProcessor
Extracts variables from a uri, matching against an URI template

Specified by:
extract in interface UriTemplateProcessor
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.