| java.lang.Object com.opensymphony.webwork.dispatcher.multipart.MultiPartRequest
All known Subclasses: com.opensymphony.webwork.dispatcher.multipart.CosMultiPartRequest, com.opensymphony.webwork.dispatcher.multipart.PellMultiPartRequest, com.opensymphony.webwork.dispatcher.multipart.JakartaMultiPartRequest,
MultiPartRequest | abstract public class MultiPartRequest (Code) | | Abstract wrapper class HTTP requests to handle multi-part data.
author: Matt Baldree author: Patrick Lightbody author: Bill Lynch (docs) |
Field Summary | |
protected static Log | log |
Method Summary | |
abstract public String[] | getContentType(String fieldName) Returns the content type(s) of the file(s) associated with the specified field name
(as supplied by the client browser), or null if no files are associated with the
given field name. | abstract public List | getErrors() Returns a list of error messages that may have occurred while processing the request.
If there are no errors, an empty list is returned. | abstract public File[] | getFile(String fieldName) Returns a
java.io.File object for the filename specified or null if no files
are associated with the given field name. | abstract public String[] | getFileNames(String fieldName) | abstract public Enumeration | getFileParameterNames() | abstract public String[] | getFilesystemName(String fieldName) Returns the file system name(s) of files associated with the given field name or
null if no files are associated with the given field name. | abstract public String | getParameter(String name) Returns the specified request parameter. | abstract public Enumeration | getParameterNames() Returns an enumeration of String parameter names. | abstract public String[] | getParameterValues(String name) Returns a list of all parameter values associated with a parameter name. | public static boolean | isMultiPart(HttpServletRequest request) Returns true if the request is multipart form data, false otherwise.
Parameters: request - the http servlet request. |
log | protected static Log log(Code) | | |
getContentType | abstract public String[] getContentType(String fieldName)(Code) | | Returns the content type(s) of the file(s) associated with the specified field name
(as supplied by the client browser), or null if no files are associated with the
given field name.
Parameters: fieldName - input field name an array of content encoding for the specified input field name or null ifno content type was specified. |
getErrors | abstract public List getErrors()(Code) | | Returns a list of error messages that may have occurred while processing the request.
If there are no errors, an empty list is returned. If the underlying implementation
(ie: pell, cos, jakarta, etc) cannot support providing these errors, an empty list is
also returned. This list of errors is repoted back to the
MultiPartRequestWrapper 's errors field.
a list of Strings that represent various errors during parsing |
getFile | abstract public File[] getFile(String fieldName)(Code) | | Returns a
java.io.File object for the filename specified or null if no files
are associated with the given field name.
Parameters: fieldName - input field name a File[] object for files associated with the specified input field name |
getFileNames | abstract public String[] getFileNames(String fieldName)(Code) | | Returns a String[] of file names for files associated with the specified input field name
Parameters: fieldName - input field name a String[] of file names for files associated with the specified input field name |
getFileParameterNames | abstract public Enumeration getFileParameterNames()(Code) | | Returns an enumeration of the parameter names for uploaded files
an enumeration of the parameter names for uploaded files |
getFilesystemName | abstract public String[] getFilesystemName(String fieldName)(Code) | | Returns the file system name(s) of files associated with the given field name or
null if no files are associated with the given field name.
Parameters: fieldName - input field name the file system name(s) of files associated with the given field name |
getParameter | abstract public String getParameter(String name)(Code) | | Returns the specified request parameter.
Parameters: name - the name of the parameter to get the parameter or null if it was not found. |
getParameterNames | abstract public Enumeration getParameterNames()(Code) | | Returns an enumeration of String parameter names.
an enumeration of String parameter names. |
getParameterValues | abstract public String[] getParameterValues(String name)(Code) | | Returns a list of all parameter values associated with a parameter name. If there is only
one parameter value per name the resulting array will be of length 1.
Parameters: name - the name of the parameter. an array of all values associated with the parameter name. |
isMultiPart | public static boolean isMultiPart(HttpServletRequest request)(Code) | | Returns true if the request is multipart form data, false otherwise.
Parameters: request - the http servlet request. true if the request is multipart form data, false otherwise. |
|
|