Class ConfluenceJakartaMultiPartRequest

java.lang.Object
org.apache.struts2.dispatcher.multipart.AbstractMultiPartRequest
org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest
com.atlassian.confluence.impl.struts.ConfluenceJakartaMultiPartRequest
All Implemented Interfaces:
org.apache.struts2.dispatcher.multipart.MultiPartRequest

public class ConfluenceJakartaMultiPartRequest extends org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest
This subclass implements the following additional capabilities:
  • Maps max file size to Confluence global attachment size limit
  • Exempts certain URLs from the multipart request size limits
  • Field Summary

    Fields inherited from class org.apache.struts2.dispatcher.multipart.AbstractMultiPartRequest

    BUFFER_SIZE, bufferSize, defaultEncoding, errors, maxFiles, maxFileSize, maxSize, maxSizeOfFiles, maxStringLength, parameters, STRUTS_MESSAGES_UPLOAD_ERROR_PARAMETER_TOO_LONG_KEY, uploadedFiles
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    parse(jakarta.servlet.http.HttpServletRequest request, String saveDir)
     

    Methods inherited from class org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest

    createJakartaFileUpload, processFileField, processNormalFormField, processUpload

    Methods inherited from class org.apache.struts2.dispatcher.multipart.AbstractMultiPartRequest

    buildErrorMessage, cleanUp, exceedsMaxStringLength, getCanonicalName, getContentType, getErrors, getFile, getFileNames, getFileParameterNames, getFilesystemName, getParameter, getParameterNames, getParameterValues, prepareServletFileUpload, readCharsetEncoding, sanitizeNewlines, setBufferSize, setDefaultEncoding, setMaxFiles, setMaxFileSize, setMaxSize, setMaxSizeOfFiles, setMaxStringLength

    Methods inherited from class java.lang.Object

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

    • ConfluenceJakartaMultiPartRequest

      public ConfluenceJakartaMultiPartRequest()
  • Method Details

    • parse

      public void parse(jakarta.servlet.http.HttpServletRequest request, String saveDir) throws IOException
      Specified by:
      parse in interface org.apache.struts2.dispatcher.multipart.MultiPartRequest
      Overrides:
      parse in class org.apache.struts2.dispatcher.multipart.AbstractMultiPartRequest
      Throws:
      IOException