| java.lang.Object org.millstone.webadapter.MultipartRequest org.millstone.webadapter.ServletMultipartRequest
ServletMultipartRequest | public class ServletMultipartRequest extends MultipartRequest (Code) | | This class wraps the MultipartRequest class by Jason Pell
for the Servlet environment.
author: IT Mill Ltd version: 3.1.1 since: 3.0 |
Constructor Summary | |
public | ServletMultipartRequest(HttpServletRequest request, String strSaveDirectory) Constructor wrapper, unwraps the InputStream,
content type and content lenght from the servlet request object.
Parameters: request - The HttpServletRequest will be used to initialise the MultipartRequest super class. Parameters: strSaveDirectory - The temporary directory to save the file from where they can then be moved to wherever by thecalling process. | public | ServletMultipartRequest(HttpServletRequest request, String strSaveDirectory, int intMaxReadBytes) Constructor wrapper, unwraps the InputStream,
content type and content lenght from the servlet request object.
Also allow to explicitly set the max permissable lenght of the request.
Parameters: request - The HttpServletRequest will be used to initialise the MultipartRequest super class. Parameters: strSaveDirectory - The temporary directory to save the file from where they can then be moved to wherever by thecalling process. | public | ServletMultipartRequest(HttpServletRequest request, int intMaxReadBytes) Constructor wrapper for loading the request into memory rather than temp-file. |
ServletMultipartRequest | public ServletMultipartRequest(HttpServletRequest request, String strSaveDirectory) throws IllegalArgumentException, IOException(Code) | | Constructor wrapper, unwraps the InputStream,
content type and content lenght from the servlet request object.
Parameters: request - The HttpServletRequest will be used to initialise the MultipartRequest super class. Parameters: strSaveDirectory - The temporary directory to save the file from where they can then be moved to wherever by thecalling process. If you specify null for this parameter, then any files uploadedwill be silently ignored. exception: IllegalArgumentException - If the request.getContentType() does not contain a Content-Type of "multipart/form-data" or the boundary is not found. exception: IOException - If the request.getContentLength() is higher than MAX_READ_BYTES or strSaveDirectory is invalid or cannot be written to. See Also: MultipartRequest.MAX_READ_BYTES |
ServletMultipartRequest | public ServletMultipartRequest(HttpServletRequest request, String strSaveDirectory, int intMaxReadBytes) throws IllegalArgumentException, IOException(Code) | | Constructor wrapper, unwraps the InputStream,
content type and content lenght from the servlet request object.
Also allow to explicitly set the max permissable lenght of the request.
Parameters: request - The HttpServletRequest will be used to initialise the MultipartRequest super class. Parameters: strSaveDirectory - The temporary directory to save the file from where they can then be moved to wherever by thecalling process. If you specify null for this parameter, then any files uploadedwill be silently ignored. Parameters: intMaxReadBytes - Overrides the MAX_BYTES_READ value, to allow arbitrarily long files. exception: IllegalArgumentException - If the request.getContentType() does not contain a Content-Type of "multipart/form-data" or the boundary is not found. exception: IOException - If the request.getContentLength() is higher than MAX_READ_BYTES or strSaveDirectory is invalid or cannot be written to. See Also: MultipartRequest.MAX_READ_BYTES |
ServletMultipartRequest | public ServletMultipartRequest(HttpServletRequest request, int intMaxReadBytes) throws IllegalArgumentException, IOException(Code) | | Constructor wrapper for loading the request into memory rather than temp-file.
Parameters: request - The HttpServletRequest will be used to initialise the MultipartRequest super class. Parameters: intMaxReadBytes - Overrides the MAX_BYTES_READ value, to allow arbitrarily long files. exception: IllegalArgumentException - If the request.getContentType() does not contain a Content-Type of "multipart/form-data" or the boundary is not found. exception: IOException - If the request.getContentLength() is higher than MAX_READ_BYTES or strSaveDirectory is invalid or cannot be written to. See Also: MultipartRequest.MAX_READ_BYTES |
|
|