Class MultipartConfigElement

java.lang.Object
jakarta.servlet.MultipartConfigElement

public class MultipartConfigElement extends Object
The MultipartConfigElement API.
Author:
Manfred Riem ([email protected])
  • Constructor Details

    • MultipartConfigElement

      public MultipartConfigElement(String location)
      Constructor.
      Parameters:
      location - the location.
    • MultipartConfigElement

      public MultipartConfigElement(String location, long maxFileSize, long maxRequestSize, int fileSizeThreshold)
      Constructor.
      Parameters:
      location - the location.
      maxFileSize - the maximum file size.
      maxRequestSize - the maximum request size.
      fileSizeThreshold - the file size threshold.
    • MultipartConfigElement

      public MultipartConfigElement(MultipartConfig annotation)
      Constructor.
      Parameters:
      annotation - the annotation value
  • Method Details

    • getFileSizeThreshold

      public int getFileSizeThreshold()
      Returns the file size threshold.
      Returns:
      the file size threshold
    • getLocation

      public String getLocation()
      Returns the storage location.
      Returns:
      the storage location
    • getMaxFileSize

      public long getMaxFileSize()
      Returns the max file size.
      Returns:
      the max file size
    • getMaxRequestSize

      public long getMaxRequestSize()
      Returns the max request size.
      Returns:
      the max request size