public class RequestReader extends Object implements FormatReader<org.springframework.extensions.surf.util.Content>
| Constructor and Description |
|---|
RequestReader() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
createScriptParameters(WebScriptRequest req,
WebScriptResponse res)
Create script parameters specific to source mimetype
|
Class<org.springframework.extensions.surf.util.Content> |
getDestinationClass()
Gets the Java Class to convert to
|
String |
getSourceMimetype()
Gets the source mimetype to convert from
|
org.springframework.extensions.surf.util.Content |
read(WebScriptRequest req)
Converts mimetype to Java Object
|
public String getSourceMimetype()
FormatReadergetSourceMimetype in interface FormatReader<org.springframework.extensions.surf.util.Content>public Class<org.springframework.extensions.surf.util.Content> getDestinationClass()
FormatReadergetDestinationClass in interface FormatReader<org.springframework.extensions.surf.util.Content>public org.springframework.extensions.surf.util.Content read(WebScriptRequest req)
FormatReaderread in interface FormatReader<org.springframework.extensions.surf.util.Content>req - web script requestpublic Map<String,Object> createScriptParameters(WebScriptRequest req, WebScriptResponse res)
FormatReadercreateScriptParameters in interface FormatReader<org.springframework.extensions.surf.util.Content>req - web script requestres - web script responseCopyright © 2005–2017 Alfresco Software. All rights reserved.