| |
|
| java.lang.Object org.springframework.web.multipart.commons.CommonsFileUploadSupport org.springframework.web.multipart.commons.CommonsMultipartResolver
CommonsMultipartResolver | public CommonsMultipartResolver(ServletContext servletContext)(Code) | | Constructor for standalone usage. Determines the servlet container's
temporary directory via the given ServletContext.
Parameters: servletContext - the ServletContext to use |
newFileUpload | protected FileUpload newFileUpload(FileItemFactory fileItemFactory)(Code) | | Initialize the underlying org.apache.commons.fileupload.servlet.ServletFileUpload
instance. Can be overridden to use a custom subclass, e.g. for testing purposes.
Parameters: fileItemFactory - the Commons FileItemFactory to use the new ServletFileUpload instance |
parseRequest | protected MultipartParsingResult parseRequest(HttpServletRequest request) throws MultipartException(Code) | | Parse the given servlet request, resolving its multipart elements.
Parameters: request - the request to parse the parsing result throws: MultipartException - if multipart resolution failed. |
setResolveLazily | public void setResolveLazily(boolean resolveLazily)(Code) | | Set whether to resolve the multipart request lazily at the time of
file or parameter access.
Default is "false", resolving the multipart elements immediately, throwing
corresponding exceptions at the time of the
CommonsMultipartResolver.resolveMultipart call.
Switch this to "true" for lazy multipart parsing, throwing parse exceptions
once the application attempts to obtain multipart files or parameters.
|
Fields inherited from org.springframework.web.multipart.commons.CommonsFileUploadSupport | final protected Log logger(Code)(Java Doc)
|
|
|
|