|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.dwrp.CommonsFileUpload
public class CommonsFileUpload
An implementation of FileUpload that uses Apache Commons FileUpload.
This class with fail to classload if commons-fileupload.jar is not present
on the classpath.
| Field Summary | |
|---|---|
static java.lang.String |
PROGRESS_LISTENER
The name of the attribute that stores the progress of an upload in a session. |
| Constructor Summary | |
|---|---|
CommonsFileUpload()
|
|
| Method Summary | |
|---|---|
long |
getFileUploadMaxBytes()
Retrieves the maximum allowed size of a single uploaded file, in bytes. |
boolean |
isMultipartContent(javax.servlet.http.HttpServletRequest req)
|
java.util.Map<java.lang.String,FormField> |
parseRequest(javax.servlet.http.HttpServletRequest req)
Process an inbound request into a set of name/value pairs where the values could be file uploads. |
void |
setFileUploadMaxBytes(long fileUploadMaxBytes)
Sets the maximum allowed size of a single uploaded file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROGRESS_LISTENER
| Constructor Detail |
|---|
public CommonsFileUpload()
| Method Detail |
|---|
public boolean isMultipartContent(javax.servlet.http.HttpServletRequest req)
public java.util.Map<java.lang.String,FormField> parseRequest(javax.servlet.http.HttpServletRequest req)
throws ServerException
FileUpload
parseRequest in interface FileUploadreq - The request to parse
ServerException - If there is an IOException while reading the requestpublic long getFileUploadMaxBytes()
public void setFileUploadMaxBytes(long fileUploadMaxBytes)
fileUploadMaxBytes -
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||