Annotation Type Multipart


@Target({PARAMETER,FIELD,METHOD}) @Retention(RUNTIME) public @interface Multipart
Annotate a JAX-RS function parameter to receive data from a multipart 'part'.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    How to handle a missing part.
    Select the part by MIME type.
    The name of the MIME part to map to this parameter.
  • Element Details

    • value

      String value
      The name of the MIME part to map to this parameter. The default is the unnamed default part.
      Default:
      ""
    • type

      String type
      Select the part by MIME type. The default is to match any MIME type.
      Default:
      "*/*"
    • required

      boolean required
      How to handle a missing part. By default, if no part matches, the MultipartProvider throws a WebApplicationException with status 400. If this option is set to false, the parameter is set to null instead.
      Default:
      true