Class CommonsMultipartMonitoredResolver

    • Constructor Detail

      • CommonsMultipartMonitoredResolver

        public CommonsMultipartMonitoredResolver()
    • Method Detail

      • isMultipart

        public boolean isMultipart​(javax.servlet.http.HttpServletRequest request)
        Specified by:
        isMultipart in interface MultipartResolver
      • setMaxUploadSize

        public void setMaxUploadSize​(long maxUploadSize)
        Set the maximum allowed size (in bytes) before uploads are refused. -1 indicates no limit (the default).
        Parameters:
        maxUploadSize - the maximum upload size allowed
        See Also:
        FileUploadBase.setSizeMax(long)
      • determineEncoding

        protected String determineEncoding​(javax.servlet.http.HttpServletRequest request)
        Determine the encoding for the given request. Can be overridden in subclasses. The default implementation checks the request encoding, falling back to the default encoding specified for this resolver.
        Parameters:
        request - current HTTP request
        Returns:
        the encoding for the request (never null)
        See Also:
        ServletRequest.getCharacterEncoding()
      • newFileUpload

        protected org.apache.commons.fileupload.servlet.ServletFileUpload newFileUpload​(javax.servlet.http.HttpServletRequest request)
        Create a factory for disk-based file items with a listener we can check for progress.
        Parameters:
        request - request
        Returns:
        the new FileUpload instance