Methods Summary |
---|
public FileItemFactory | getFileItemFactory()Returns the factory class used when creating file items.
return fileItemFactory;
|
public java.lang.String | getRepositoryPath()Returns the location used to temporarily store files that are larger
than the configured size threshold.
return fileItemFactory.getRepository().getPath();
|
public int | getSizeThreshold()Returns the size threshold beyond which files are written directly to
disk.
return fileItemFactory.getSizeThreshold();
|
public java.util.List | parseRequest(javax.servlet.http.HttpServletRequest req, int sizeThreshold, long sizeMax, java.lang.String path)Processes an RFC 1867
compliant multipart/form-data stream. If files are stored
on disk, the path is given by getRepository() .
setSizeThreshold(sizeThreshold);
setSizeMax(sizeMax);
setRepositoryPath(path);
return parseRequest(req);
|
public void | setFileItemFactory(FileItemFactory factory)Sets the factory class to use when creating file items. The factory must
be an instance of DefaultFileItemFactory or a subclass
thereof, or else a ClassCastException will be thrown.
this.fileItemFactory = (DefaultFileItemFactory) factory;
|
public void | setRepositoryPath(java.lang.String repositoryPath)Sets the location used to temporarily store files that are larger
than the configured size threshold.
fileItemFactory.setRepository(new File(repositoryPath));
|
public void | setSizeThreshold(int sizeThreshold)Sets the size threshold beyond which files are written directly to disk.
fileItemFactory.setSizeThreshold(sizeThreshold);
|