Annotation Type UploadConfig


  • @Target({PARAMETER,FIELD})
    @Retention(RUNTIME)
    public @interface UploadConfig
    Annotation which can be put on the MultiPart parameter, to control the size constraints. Adding them into an annotation will work like if they were passed into the parser using the fluent API.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      long maxPartSize
      The maximum size permitted for the parts.
      long maxRequestSize
      The maximum size permitted for the complete request.
      int sizeThreshold
      The number of bytes that should be buffered before calling the part begin callback.
    • Element Detail

      • sizeThreshold

        int sizeThreshold
        The number of bytes that should be buffered before calling the part begin callback.
        Returns:
        The amount to use.
        Default:
        0
      • maxPartSize

        long maxPartSize
        The maximum size permitted for the parts. By default it is unlimited.
        Returns:
        The amount to use.
        Default:
        -1L
      • maxRequestSize

        long maxRequestSize
        The maximum size permitted for the complete request. By default it is unlimited.
        Returns:
        The amount to use.
        Default:
        -1L