net.sf.click.service
Interface FileUploadService

All Known Implementing Classes:
CommonsFileUploadService

public interface FileUploadService

Provides a file upload service interface.

Author:
Bob Schellink, Malcolm Edgar

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 parseRequest(HttpServletRequest request)
          Return a parsed list of FileItem from the request.
 

Field Detail

UPLOAD_EXCEPTION

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

See Also:
Constant Field Values
Method Detail

onInit

public 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

public void onDestroy()
Destroy the FileUploadService.


parseRequest

public List 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