public class MultipartRequestResolver extends Object
Provides "maxUploadSize", "maxMemorySize" and "tmpUploadDir" settings as bean properties. See corresponding ServletFileUpload / DiskFileItemFactory properties ("sizeMax", "sizeThreshold", ) for details in terms of defaults and accepted values.
Saves temporary files to the temporary directory.
#CommonsMultipartResolver(ServletContext)
,
org.springframework.web.portlet.multipart.CommonsPortletMultipartResolver
,
ServletFileUpload
,
DiskFileItemFactory
Constructor and Description |
---|
MultipartRequestResolver()
constructor.
|
MultipartRequestResolver(String tmpUploadDir) |
MultipartRequestResolver(String tmpUploadDir,
int maxUploadSize) |
MultipartRequestResolver(String tmpUploadDir,
int maxUploadSize,
int maxMemorySize) |
Modifier and Type | Method and Description |
---|---|
static boolean |
isMultipartContent(javax.servlet.http.HttpServletRequest request) |
MultipartRequest |
resolveMultipart(javax.servlet.http.HttpServletRequest request)
get the parts of a
|
public MultipartRequestResolver()
filePartFile
- a Directory path to write any file contents to.public MultipartRequestResolver(String tmpUploadDir)
public MultipartRequestResolver(String tmpUploadDir, int maxUploadSize)
public MultipartRequestResolver(String tmpUploadDir, int maxUploadSize, int maxMemorySize)
public MultipartRequest resolveMultipart(javax.servlet.http.HttpServletRequest request) throws IOException, org.apache.commons.fileupload.FileUploadException, Exception
IOException
org.apache.commons.fileupload.FileUploadException
Exception
public static final boolean isMultipartContent(javax.servlet.http.HttpServletRequest request)
Copyright © 2014. All Rights Reserved.