| |
|
| com.opensymphony.webwork.dispatcher.WebWorkRequestWrapper com.opensymphony.webwork.dispatcher.multipart.MultiPartRequestWrapper
log | final protected static Log log(Code) | | |
MultiPartRequestWrapper | public MultiPartRequestWrapper(HttpServletRequest request, String saveDir, int maxSize)(Code) | | Instantiates the appropriate MultiPartRequest parser implementation and processes the data.
Parameters: request - the servlet request object Parameters: saveDir - directory to save the file(s) to Parameters: maxSize - maximum file size allowed |
addError | protected void addError(String anErrorMessage)(Code) | | Adds an error message.
Parameters: anErrorMessage - the error message to report. |
getContentTypes | public String[] getContentTypes(String name)(Code) | | Get an array of content encoding for the specified input field name or null if
no content type was specified.
Parameters: name - input field name an array of content encoding for the specified input field name |
getErrors | public Collection getErrors()(Code) | | Returns a collection of any errors generated when parsing the multipart request.
the error Collection. |
getFileNames | public String[] getFileNames(String fieldName)(Code) | | Get a String array of the file names for uploaded files
a String[] of file names for uploaded files |
getFileParameterNames | public Enumeration getFileParameterNames()(Code) | | Get an enumeration of the parameter names for uploaded files
enumeration of parameter names for uploaded files |
getFileSystemNames | public String[] getFileSystemNames(String fieldName)(Code) | | Get the filename(s) of the file(s) uploaded for the given input field name.
Returns null if the file is not found.
Parameters: fieldName - input field name the filename(s) of the file(s) uploaded for the given input field name ornull if name not found. |
getFiles | public File[] getFiles(String fieldName)(Code) | | Get a
java.io.File[] for the given input field name.
Parameters: fieldName - input field name a File[] object for files associated with the specified input field name |
hasErrors | public boolean hasErrors()(Code) | | Returns true if any errors occured when parsing the HTTP multipart request, false otherwise.
true if any errors occured when parsing the HTTP multipart request, false otherwise. |
mergeParams | protected Enumeration mergeParams(Enumeration params1, Enumeration params2)(Code) | | Merges 2 enumeration of parameters as one.
Parameters: params1 - the first enumeration. Parameters: params2 - the second enumeration. a single Enumeration of all elements from both Enumerations. |
|
|
|