Annotation Interface Multipart


Apply to Resource Method parameters to enable HTML multipart form parameter injection.

Refer to documentation at https://www.soklet.com/docs/request-handling#multipart-form-data for details.

Author:
Mark Allen
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of the HTML multipart form parameter.
    boolean
    Is this HTML multipart form parameter optional or required?
  • Element Details

    • name

      The name of the HTML multipart form parameter.

      If null or blank, defaults to the name of the Java method parameter if your application is built with the -parameters compiler option.

      Returns:
      the name of the HTML multipart form parameter to inject into this Resource Method parameter
      Default:
      ""
    • optional

      boolean optional
      Is this HTML multipart form parameter optional or required?
      Returns:
      true if optional, false if required
      Default:
      false