info.magnolia.cms.beans.runtime
Class MultipartForm

java.lang.Object
  extended by info.magnolia.cms.beans.runtime.MultipartForm

public class MultipartForm
extends Object

A util class to access file uploads in multipart post requests. Use getDocument(String) to access an uploaded file.

Version:
1.1
Author:
Sameer Charles

Field Summary
static String REQUEST_ATTRIBUTE_NAME
          The name of the request attribute containing a MultipartForm instance.
 
Constructor Summary
MultipartForm()
           
 
Method Summary
 void addDocument(String atomName, String fileName, String type, File file)
           
 void addParameter(String name, Object value)
          Deprecated. since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped.
 void addparameterValues(String name, String[] values)
          Deprecated. since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped.
 Document getDocument(String name)
           
 Map<String,Document> getDocuments()
           
 String getParameter(String name)
          Deprecated. since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped.
 Enumeration<String> getParameterNames()
          Deprecated. since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped.
 Map<String,String[]> getParameters()
          Deprecated. since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped.
 String[] getParameterValues(String name)
          Deprecated. since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped.
 void removeParameter(String name)
          Deprecated. since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUEST_ATTRIBUTE_NAME

public static final String REQUEST_ATTRIBUTE_NAME
The name of the request attribute containing a MultipartForm instance.

See Also:
Constant Field Values
Constructor Detail

MultipartForm

public MultipartForm()
Method Detail

addParameter

public void addParameter(String name,
                         Object value)
Deprecated. since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped.


removeParameter

public void removeParameter(String name)
Deprecated. since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped.


getParameters

public Map<String,String[]> getParameters()
Deprecated. since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped.


getParameter

public String getParameter(String name)
Deprecated. since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped.


getParameterValues

public String[] getParameterValues(String name)
Deprecated. since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped.


addparameterValues

public void addparameterValues(String name,
                               String[] values)
Deprecated. since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped.


addDocument

public void addDocument(String atomName,
                        String fileName,
                        String type,
                        File file)

getDocument

public Document getDocument(String name)

getDocuments

public Map<String,Document> getDocuments()

getParameterNames

public Enumeration<String> getParameterNames()
Deprecated. since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped.



Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.