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.JakartaMultiPartRequest

    files, params

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

    BUFFER_SIZE, bufferSize, defaultEncoding, defaultLocale, errors, maxFiles, maxFileSize, maxSize, maxStringLength
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<Pattern>
    buildPatternsList(String patterns, String separator)
     
    void
    parse(javax.servlet.http.HttpServletRequest request, String saveDir)
     

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

    cleanUp, createDiskFileItemFactory, createRequestContext, createServletFileUpload, getContentType, getFile, getFileNames, getFileParameterNames, getFilesystemName, getParameter, getParameterNames, getParameterValues, parseRequest, processFileField, processNormalFormField, processUpload

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

    buildErrorMessage, getCanonicalName, getErrors, setBufferSize, setDefaultEncoding, setLocale, setLocaleProviderFactory, setMaxFiles, setMaxFileSize, setMaxSize, 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(javax.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.JakartaMultiPartRequest
      Throws:
      IOException
    • buildPatternsList

      public static List<Pattern> buildPatternsList(String patterns, String separator)