org.codehaus.waffle.io
Interface FileUploader

All Known Implementing Classes:
RequestFileUploader

public interface FileUploader

Allows to upload files from a multipart request

Author:
Gleb Mazursky, Mauro Talevi

Method Summary
 java.util.Collection<java.lang.String> getErrors()
          Returns errors generated when parsing the multipart request.
 java.util.List<org.apache.commons.fileupload.FileItem> getFiles()
          Returns the uploaded files
 java.util.List<org.apache.commons.fileupload.FileItem> getFormFields()
          Returns the form fields
 boolean hasErrors()
          Determines if any errors occured when parsing the multipart request
 

Method Detail

getFiles

java.util.List<org.apache.commons.fileupload.FileItem> getFiles()
Returns the uploaded files

Returns:
A List of FileItems, one for each uploaded file

getFormFields

java.util.List<org.apache.commons.fileupload.FileItem> getFormFields()
Returns the form fields

Returns:
A List of FileItems, one for each form field

getErrors

java.util.Collection<java.lang.String> getErrors()
Returns errors generated when parsing the multipart request.

Returns:
the error Collection.

hasErrors

boolean hasErrors()
Determines if any errors occured when parsing the multipart request

Returns:
true if any errors occured


Copyright © 2008. All Rights Reserved.