Class FormDataReader
- java.lang.Object
-
- org.springframework.extensions.webscripts.servlet.FormDataReader
-
- All Implemented Interfaces:
FormatReader<FormData>
public class FormDataReader extends java.lang.Object implements FormatReader<FormData>
Convert multipart/formdata to class org.alfresco.web.scripts.servlet.FormData- Author:
- davidc
-
-
Constructor Summary
Constructors Constructor Description FormDataReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>createScriptParameters(WebScriptRequest req, WebScriptResponse res)Create script parameters specific to source mimetypejava.lang.Class<FormData>getDestinationClass()Gets the Java Class to convert tojava.lang.StringgetSourceMimetype()Gets the source mimetype to convert fromFormDataread(WebScriptRequest req)Converts mimetype to Java Object
-
-
-
Method Detail
-
getSourceMimetype
public java.lang.String getSourceMimetype()
Description copied from interface:FormatReaderGets the source mimetype to convert from- Specified by:
getSourceMimetypein interfaceFormatReader<FormData>- Returns:
- mimetype
-
getDestinationClass
public java.lang.Class<FormData> getDestinationClass()
Description copied from interface:FormatReaderGets the Java Class to convert to- Specified by:
getDestinationClassin interfaceFormatReader<FormData>- Returns:
- Java Clas
-
read
public FormData read(WebScriptRequest req)
Description copied from interface:FormatReaderConverts mimetype to Java Object- Specified by:
readin interfaceFormatReader<FormData>- Parameters:
req- web script request- Returns:
- Java Object
-
createScriptParameters
public java.util.Map<java.lang.String,java.lang.Object> createScriptParameters(WebScriptRequest req, WebScriptResponse res)
Description copied from interface:FormatReaderCreate script parameters specific to source mimetype- Specified by:
createScriptParametersin interfaceFormatReader<FormData>- Parameters:
req- web script requestres- web script response- Returns:
- map of script objects indexed by name
-
-