|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.extensions.webscripts.json.JSONReader
public class JSONReader
Convert application/json to org.json.JSONObject or org.json.JSONArray
| Constructor Summary | |
|---|---|
JSONReader()
|
|
| Method Summary | |
|---|---|
Map<String,Object> |
createScriptParameters(WebScriptRequest req,
WebScriptResponse res)
Create script parameters specific to source mimetype |
Class<? extends Object> |
getDestinationClass()
Gets the Java Class to convert to |
String |
getSourceMimetype()
Gets the source mimetype to convert from |
Object |
read(WebScriptRequest req)
Converts mimetype to Java Object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSONReader()
| Method Detail |
|---|
public Class<? extends Object> getDestinationClass()
FormatReader
getDestinationClass in interface FormatReader<Object>FormatReader.getDestinationClass()public String getSourceMimetype()
FormatReader
getSourceMimetype in interface FormatReader<Object>FormatReader.getSourceMimetype()public Object read(WebScriptRequest req)
FormatReader
read in interface FormatReader<Object>req - web script request
FormatReader.read(org.springframework.extensions.webscripts.WebScriptRequest)
public Map<String,Object> createScriptParameters(WebScriptRequest req,
WebScriptResponse res)
FormatReader
createScriptParameters in interface FormatReader<Object>req - web script requestres - web script response
FormatReader.createScriptParameters(org.springframework.extensions.webscripts.WebScriptRequest, org.springframework.extensions.webscripts.WebScriptResponse)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||