public class JSONReader extends Object implements FormatReader<Object>
| Constructor and Description |
|---|
JSONReader() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public Class<? extends Object> getDestinationClass()
FormatReadergetDestinationClass in interface FormatReader<Object>FormatReader.getDestinationClass()public String getSourceMimetype()
FormatReadergetSourceMimetype in interface FormatReader<Object>FormatReader.getSourceMimetype()public Object read(WebScriptRequest req)
FormatReaderread in interface FormatReader<Object>req - web script requestFormatReader.read(org.springframework.extensions.webscripts.WebScriptRequest)public Map<String,Object> createScriptParameters(WebScriptRequest req, WebScriptResponse res)
FormatReadercreateScriptParameters in interface FormatReader<Object>req - web script requestres - web script responseFormatReader.createScriptParameters(org.springframework.extensions.webscripts.WebScriptRequest, org.springframework.extensions.webscripts.WebScriptResponse)Copyright © 2005–2018 Alfresco Software. All rights reserved.