org.springframework.extensions.webscripts.servlet
Class FormDataReader

java.lang.Object
  extended by org.springframework.extensions.webscripts.servlet.FormDataReader
All Implemented Interfaces:
FormatReader<FormData>

public class FormDataReader
extends Object
implements FormatReader<FormData>

Convert multipart/formdata to class org.alfresco.web.scripts.servlet.FormData

Author:
davidc

Constructor Summary
FormDataReader()
           
 
Method Summary
 Map<String,Object> createScriptParameters(WebScriptRequest req, WebScriptResponse res)
          Create script parameters specific to source mimetype
 Class<FormData> getDestinationClass()
          Gets the Java Class to convert to
 String getSourceMimetype()
          Gets the source mimetype to convert from
 FormData 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

FormDataReader

public FormDataReader()
Method Detail

getSourceMimetype

public String getSourceMimetype()
Description copied from interface: FormatReader
Gets the source mimetype to convert from

Specified by:
getSourceMimetype in interface FormatReader<FormData>
Returns:
mimetype

getDestinationClass

public Class<FormData> getDestinationClass()
Description copied from interface: FormatReader
Gets the Java Class to convert to

Specified by:
getDestinationClass in interface FormatReader<FormData>
Returns:
Java Clas

read

public FormData read(WebScriptRequest req)
Description copied from interface: FormatReader
Converts mimetype to Java Object

Specified by:
read in interface FormatReader<FormData>
Parameters:
req - web script request
Returns:
Java Object

createScriptParameters

public Map<String,Object> createScriptParameters(WebScriptRequest req,
                                                 WebScriptResponse res)
Description copied from interface: FormatReader
Create script parameters specific to source mimetype

Specified by:
createScriptParameters in interface FormatReader<FormData>
Parameters:
req - web script request
res - web script response
Returns:
map of script objects indexed by name


Copyright © 2009 SpringSource, Inc. All Rights Reserved.