Class RequestReader
java.lang.Object
org.springframework.extensions.webscripts.RequestReader
- All Implemented Interfaces:
FormatReader<org.springframework.extensions.surf.util.Content>
public class RequestReader
extends Object
implements FormatReader<org.springframework.extensions.surf.util.Content>
Convert request stream to class org.alfresco.util.Content
- Author:
- davidc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate script parameters specific to source mimetypeClass<org.springframework.extensions.surf.util.Content>Gets the Java Class to convert toGets the source mimetype to convert fromorg.springframework.extensions.surf.util.Contentread(WebScriptRequest req) Converts mimetype to Java Object
-
Constructor Details
-
RequestReader
public RequestReader()
-
-
Method Details
-
getSourceMimetype
Description copied from interface:FormatReaderGets the source mimetype to convert from- Specified by:
getSourceMimetypein interfaceFormatReader<org.springframework.extensions.surf.util.Content>- Returns:
- mimetype
-
getDestinationClass
Description copied from interface:FormatReaderGets the Java Class to convert to- Specified by:
getDestinationClassin interfaceFormatReader<org.springframework.extensions.surf.util.Content>- Returns:
- Java Clas
-
read
Description copied from interface:FormatReaderConverts mimetype to Java Object- Specified by:
readin interfaceFormatReader<org.springframework.extensions.surf.util.Content>- Parameters:
req- web script request- Returns:
- Java Object
-
createScriptParameters
Description copied from interface:FormatReaderCreate script parameters specific to source mimetype- Specified by:
createScriptParametersin interfaceFormatReader<org.springframework.extensions.surf.util.Content>- Parameters:
req- web script requestres- web script response- Returns:
- map of script objects indexed by name
-