Package javax.servlet

Class MultipartConfigElement


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

      • 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 Detail

      • getFileSizeThreshold

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

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

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

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