/** * Sets the location used to temporarily store files that are larger than the configured size * threshold. * * @param repositoryPath The path to the temporary file location. * @see #getRepositoryPath() * @deprecated 1.1 Use <code>DiskFileItemFactory</code> instead. */ @Deprecated public void setRepositoryPath(String repositoryPath) { fileItemFactory.setRepository(new File(repositoryPath)); }
/** * Sets the size threshold beyond which files are written directly to disk. * * @param sizeThreshold The size threshold, in bytes. * @see #getSizeThreshold() * @deprecated 1.1 Use <code>DiskFileItemFactory</code> instead. */ @Deprecated public void setSizeThreshold(int sizeThreshold) { fileItemFactory.setSizeThreshold(sizeThreshold); }
/** * Returns the location used to temporarily store files that are larger than the configured size * threshold. * * @return The path to the temporary file location. * @see #setRepositoryPath(String) * @deprecated 1.1 Use <code>DiskFileItemFactory</code> instead. */ @Deprecated public String getRepositoryPath() { return fileItemFactory.getRepository().getPath(); }
/** * Returns the size threshold beyond which files are written directly to disk. * * @return The size threshold, in bytes. * @see #setSizeThreshold(int) * @deprecated 1.1 Use <code>DiskFileItemFactory</code> instead. */ @Deprecated public int getSizeThreshold() { return fileItemFactory.getSizeThreshold(); }