|
||||||||||
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 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 |
---|
public static final java.lang.String REQUEST_ATTRIBUTE_NAME
Constructor Detail |
---|
public MultipartForm()
Method Detail |
---|
public void addParameter(java.lang.String name, java.lang.Object value)
public void removeParameter(java.lang.String name)
public java.util.Map<java.lang.String,java.lang.String[]> getParameters()
public java.lang.String getParameter(java.lang.String name)
public java.lang.String[] getParameterValues(java.lang.String name)
public void addparameterValues(java.lang.String name, java.lang.String[] values)
public void addDocument(java.lang.String atomName, java.lang.String fileName, java.lang.String type, java.io.File file)
public Document getDocument(java.lang.String name)
public java.util.Map<java.lang.String,Document> getDocuments()
public java.util.Enumeration<java.lang.String> getParameterNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |