|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.beans.runtime.MultipartForm
public class MultipartForm
A util class to access file uploads in multipart post requests. Use getDocument(String)
to access an uploaded file.
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 |
---|
public static final String REQUEST_ATTRIBUTE_NAME
Constructor Detail |
---|
public MultipartForm()
Method Detail |
---|
public void addParameter(String name, Object value)
public void removeParameter(String name)
public Map<String,String[]> getParameters()
public String getParameter(String name)
public String[] getParameterValues(String name)
public void addparameterValues(String name, String[] values)
public void addDocument(String atomName, String fileName, String type, File file)
public Document getDocument(String name)
public Map<String,Document> getDocuments()
public Enumeration<String> getParameterNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |