Package com.damnhandy.uri.template
Class JsonVarExploder
- java.lang.Object
-
- com.damnhandy.uri.template.JsonVarExploder
-
- All Implemented Interfaces:
com.damnhandy.uri.template.VarExploder
public class JsonVarExploder extends Object implements com.damnhandy.uri.template.VarExploder
An example exploder that reads JSON data and explodes into a URI expression.- Version:
- $Revision: 1.1 $
- Author:
- Ryan J. McDonough
-
-
Constructor Summary
Constructors Constructor Description JsonVarExploder(File file)
Create a new JsonVarExploder.JsonVarExploder(InputStream in)
Create a new JsonVarExploder.JsonVarExploder(String jsonText)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
getNameValuePairs()
Collection<Object>
getValues()
-
-
-
Constructor Detail
-
JsonVarExploder
public JsonVarExploder(File file) throws FileNotFoundException, com.damnhandy.uri.template.VarExploderException
Create a new JsonVarExploder.- Parameters:
file
-- Throws:
FileNotFoundException
com.damnhandy.uri.template.VarExploderException
-
JsonVarExploder
public JsonVarExploder(String jsonText) throws com.damnhandy.uri.template.VarExploderException, UnsupportedEncodingException
- Throws:
com.damnhandy.uri.template.VarExploderException
UnsupportedEncodingException
-
JsonVarExploder
public JsonVarExploder(InputStream in) throws com.damnhandy.uri.template.VarExploderException
Create a new JsonVarExploder.- Parameters:
in
-- Throws:
com.damnhandy.uri.template.VarExploderException
-
-
Method Detail
-
getValues
public Collection<Object> getValues() throws com.damnhandy.uri.template.VarExploderException
- Specified by:
getValues
in interfacecom.damnhandy.uri.template.VarExploder
- Throws:
com.damnhandy.uri.template.VarExploderException
-
-