org.apache.click.service
Interface FileUploadService

All Known Implementing Classes:
CommonsFileUploadService

public interface FileUploadService

Provides a file upload service interface.


Field Summary
static String UPLOAD_EXCEPTION
          The attribute key used for storing an upload exception.
 
Method Summary
 void onDestroy()
          Destroy the FileUploadService.
 void onInit(ServletContext servletContext)
          Initialize the FileUploadService with the given application servlet context.
 List<FileItem> parseRequest(HttpServletRequest request)
          Return a parsed list of FileItem from the request.
 

Field Detail

UPLOAD_EXCEPTION

static final String UPLOAD_EXCEPTION
The attribute key used for storing an upload exception.

See Also:
Constant Field Values
Method Detail

onInit

void onInit(ServletContext servletContext)
            throws Exception
Initialize the FileUploadService with the given application servlet context.

This method is invoked after the FileUploadService has been constructed.

Note you can access ConfigService by invoking ClickUtils.getConfigService(javax.servlet.ServletContext)

Parameters:
servletContext - the application servlet context
Throws:
Exception - if an error occurs initializing the FileUploadService

onDestroy

void onDestroy()
Destroy the FileUploadService.


parseRequest

List<FileItem> parseRequest(HttpServletRequest request)
                            throws FileUploadException
Return a parsed list of FileItem from the request.

Parameters:
request - the servlet request
Returns:
the list of FileItem instances parsed from the request
Throws:
FileUploadException - if request cannot be parsed