info.magnolia.cms.beans.runtime
Class MultipartForm

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

public class MultipartForm
extends java.lang.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 java.lang.String REQUEST_ATTRIBUTE_NAME
          The name of the request attribute containing a MultipartForm instance.
 
Constructor Summary
MultipartForm()
           
 
Method Summary
 void addDocument(java.lang.String atomName, java.lang.String fileName, java.lang.String type, java.io.File file)
           
 void addParameter(java.lang.String name, java.lang.Object value)
          Deprecated. since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped.
 void addparameterValues(java.lang.String name, java.lang.String[] values)
          Deprecated. since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped.
 Document getDocument(java.lang.String name)
           
 java.util.Map<java.lang.String,Document> getDocuments()
           
 java.lang.String getParameter(java.lang.String name)
          Deprecated. since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped.
 java.util.Enumeration<java.lang.String> getParameterNames()
          Deprecated. since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped.
 java.util.Map<java.lang.String,java.lang.String[]> getParameters()
          Deprecated. since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped.
 java.lang.String[] getParameterValues(java.lang.String name)
          Deprecated. since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped.
 void removeParameter(java.lang.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 java.lang.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(java.lang.String name,
                         java.lang.Object value)
Deprecated. since 4.0 - should not be needed anymore since MAGNOLIA-2449 - request parameters should be correctly wrapped.


removeParameter

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


getParameters

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


getParameter

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


getParameterValues

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


addparameterValues

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


addDocument

public void addDocument(java.lang.String atomName,
                        java.lang.String fileName,
                        java.lang.String type,
                        java.io.File file)

getDocument

public Document getDocument(java.lang.String name)

getDocuments

public java.util.Map<java.lang.String,Document> getDocuments()

getParameterNames

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



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