Package org.apache.commons.fileupload2.javax
An implementation of AbstractFileUpload
for use in servlets conforming to JSR 53. This implementation requires
only access to the servlet's current HttpServletRequest
instance, and a suitable FileItemFactory
implementation, such as DiskFileItemFactory
.
The following code fragment demonstrates typical usage.
DiskFileItemFactory factory = DiskFileItemFactory().builder().get();
// Configure the factory here, if desired.
ServletFileUpload upload = new ServletFileUpload(factory);
// Configure the uploader here, if desired.
List fileItems = upload.parseRequest(request);
Please see the FileUpload User Guide for further details and examples of how to use this package.
-
Class Summary Class Description JavaxFileCleaner A servlet context listener, which ensures that theFileCleaningTracker
's reaper thread is terminated, when the web application is destroyed.JavaxServletDiskFileUpload A JavaxServletFileUpload forDiskFileItem
andDiskFileItemFactory
.JavaxServletFileUpload<I extends FileItem<I>,F extends FileItemFactory<I>> High level API for processing file uploads.JavaxServletRequestContext Provides access to the request information needed for a request made to an HTTP servlet.