Class DigestFileItemFactory

java.lang.Object
org.apache.tomcat.util.http.fileupload.disk.DiskFileItemFactory
org.lockss.laaws.rs.multipart.DigestFileItemFactory
All Implemented Interfaces:
org.apache.tomcat.util.http.fileupload.FileItemFactory

public class DigestFileItemFactory extends org.apache.tomcat.util.http.fileupload.disk.DiskFileItemFactory
  • Field Summary

    Fields inherited from class org.apache.tomcat.util.http.fileupload.disk.DiskFileItemFactory

    DEFAULT_SIZE_THRESHOLD
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs an unconfigured instance of this class.
    DigestFileItemFactory(int sizeThreshold, File repository)
    Constructs a preconfigured instance of this class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.tomcat.util.http.fileupload.FileItem
    createItem(String fieldName, String contentType, boolean isFormField, String fileName)
     

    Methods inherited from class org.apache.tomcat.util.http.fileupload.disk.DiskFileItemFactory

    getDefaultCharset, getRepository, getSizeThreshold, setDefaultCharset, setRepository, setSizeThreshold

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DigestFileItemFactory

      public DigestFileItemFactory()
      Constructs an unconfigured instance of this class. The resulting factory may be configured by calling the appropriate setter methods.
    • DigestFileItemFactory

      public DigestFileItemFactory(int sizeThreshold, File repository)
      Constructs a preconfigured instance of this class.
      Parameters:
      sizeThreshold - The threshold, in bytes, below which items will be retained in memory and above which they will be stored as a file.
      repository - The data repository, which is the directory in which files will be created, should the item size exceed the threshold.
  • Method Details

    • createItem

      public org.apache.tomcat.util.http.fileupload.FileItem createItem(String fieldName, String contentType, boolean isFormField, String fileName)
      Specified by:
      createItem in interface org.apache.tomcat.util.http.fileupload.FileItemFactory
      Overrides:
      createItem in class org.apache.tomcat.util.http.fileupload.disk.DiskFileItemFactory