Annotation Type Multipart


  • @Retention(RUNTIME)
    @Target(ANNOTATION_TYPE)
    public @interface Multipart
    This annotation is used within composite portlet configuration annotations to add multipart configuration information. This is the portlet analog of the jakarta.servlet.annotation.MultipartConfig annotation.

    This annotation cannot be used as a stand-alone portlet annotation.

    Since:
    3.0
    See Also:
    MultipartConfig
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      boolean supported
      Flag indicating if the portlet supports multipart forms.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      int fileSizeThreshold
      The size threshold after which the file will be written to disk.
      String location
      The directory location where files will be stored.
      long maxFileSize
      The maximum size allowed for uploaded files.
      long maxRequestSize
      The maximum size allowed for multipart/form-data requests.
    • Element Detail

      • supported

        boolean supported
        Flag indicating if the portlet supports multipart forms. Must be set to true to activate multipart forms support.
        Returns:
        true if multipart forms are supported; false otherwise.
      • fileSizeThreshold

        int fileSizeThreshold
        The size threshold after which the file will be written to disk.
        Returns:
        The file size threshold
        Default:
        0
      • location

        String location
        The directory location where files will be stored.
        Returns:
        The directory location
        Default:
        ""
      • maxFileSize

        long maxFileSize
        The maximum size allowed for uploaded files.
        Returns:
        The maximum size allowed for uploaded files
        Default:
        -1L
      • maxRequestSize

        long maxRequestSize
        The maximum size allowed for multipart/form-data requests.
        Returns:
        The maximum size allowed for multipart/form-data requests
        Default:
        -1L