|
HDIV API 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMultipartConfig
Class containing multipart request configuration and methods initialized from Spring Factory.
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIBUTE_MAX_LENGTH_EXCEEDED
This is the ServletRequest attribute that should be set when a multipart request is being read and the maximum length is exceeded. |
static long |
DEFAULT_SIZE_MAX
The default value for the maximum allowable size, in bytes, of an uploaded file. |
static int |
DEFAULT_SIZE_THRESHOLD
The default value for the threshold which determines whether an uploaded file will be written to disk or cached in memory. |
static java.lang.String |
FILEUPLOAD_EXCEPTION
This is the ServletRequest attribute that should be set when a multipart request is being read and failed. |
| Method Summary | |
|---|---|
void |
addFileParameter(RequestWrapper request,
org.apache.commons.fileupload.FileItem item)
Adds a file parameter to the set of file parameters for this request and also to the list of all parameters. |
void |
addTextParameter(RequestWrapper request,
org.apache.commons.fileupload.FileItem item)
Adds a regular text parameter to the set of text parameters for this request. |
java.lang.String |
getRepositoryPath(javax.servlet.ServletContext servletContext)
Returns the path to the temporary directory to be used for uploaded files which are written to disk. |
void |
handleMultipartRequest(RequestWrapper request,
javax.servlet.ServletContext servletContext)
Parses the input stream and partitions the parsed items into a set of form fields and a set of file items. |
| Field Detail |
|---|
static final long DEFAULT_SIZE_MAX
static final int DEFAULT_SIZE_THRESHOLD
static final java.lang.String ATTRIBUTE_MAX_LENGTH_EXCEEDED
static final java.lang.String FILEUPLOAD_EXCEPTION
| Method Detail |
|---|
void handleMultipartRequest(RequestWrapper request,
javax.servlet.ServletContext servletContext)
throws org.apache.commons.fileupload.FileUploadException,
org.apache.commons.fileupload.FileUploadBase.SizeLimitExceededException,
org.springframework.web.multipart.MaxUploadSizeExceededException
request - The multipart request wrapper.servletContext - Our ServletContext object
org.apache.commons.fileupload.FileUploadException - if an unrecoverable error occurs.
DiskFileUpload.SizeLimitExceededException - if size limit exceeded
org.apache.commons.fileupload.FileUploadBase.SizeLimitExceededException
org.springframework.web.multipart.MaxUploadSizeExceededExceptionjava.lang.String getRepositoryPath(javax.servlet.ServletContext servletContext)
saveDir attribute
of the <multipartConfig> element in the Spring config file.javax.servlet.context.tempdir
attribute.
servletContext - servlet context
void addFileParameter(RequestWrapper request,
org.apache.commons.fileupload.FileItem item)
request - The request in which the parameter was specified.item - The file item for the parameter to add.
void addTextParameter(RequestWrapper request,
org.apache.commons.fileupload.FileItem item)
request - The request in which the parameter was specified.item - The file item for the parameter to add.
|
HDIV 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||