Provides "maxUploadSize" and "defaultEncoding" settings as bean properties;
see respective MultipartRequest constructor parameters for details.
Default maximum file size is unlimited; fallback encoding is the platform's default.
author: Juergen Hoeller since: 06.10.2003 See Also:CosMultipartHttpServletRequest See Also: com.oreilly.servlet.MultipartRequest
newMultipartRequest(HttpServletRequest request) Create a com.oreilly.servlet.MultipartRequest for the given HTTP request.
Can be overridden to use a custom subclass, e.g.
setDefaultEncoding(String defaultEncoding) Set the default character encoding to use for parsing requests,
to be applied to headers of individual parts and to form fields.
Default is ISO-8859-1, according to the Servlet spec.
If the request specifies a character encoding itself, the request
encoding will override this setting.
public void
setMaxUploadSize(int maxUploadSize) Set the maximum allowed size (in bytes) before uploads are refused.
Constructor for standalone usage. Determines the servlet container's
temporary directory via the given ServletContext.
Parameters: servletContext - the ServletContext to use (must not be null) throws: IllegalArgumentException - if the supplied ServletContext is null
Create a com.oreilly.servlet.MultipartRequest for the given HTTP request.
Can be overridden to use a custom subclass, e.g. for testing purposes.
Parameters: request - current HTTP request the new MultipartRequest throws: IOException - if thrown by the MultipartRequest constructor
public void setDefaultEncoding(String defaultEncoding)(Code)
Set the default character encoding to use for parsing requests,
to be applied to headers of individual parts and to form fields.
Default is ISO-8859-1, according to the Servlet spec.
public void setMaxUploadSize(int maxUploadSize)(Code)
Set the maximum allowed size (in bytes) before uploads are refused.
-1 indicates no limit (the default).
Parameters: maxUploadSize - the maximum file size allowed