Annotation Interface HttpWhiteboardServletMultipart


@ComponentPropertyType @Retention(CLASS) @Target(TYPE) public @interface HttpWhiteboardServletMultipart
Component Property Type for the osgi.http.whiteboard.servlet.multipart.enabled, osgi.http.whiteboard.servlet.multipart.fileSizeThreshold, osgi.http.whiteboard.servlet.multipart.location, osgi.http.whiteboard.servlet.multipart.maxFileSize, and osgi.http.whiteboard.servlet.multipart.maxRequestSize service properties.

This annotation can be used on a Servlet to declare the values of the HTTP_WHITEBOARD_SERVLET_MULTIPART_ENABLED, HTTP_WHITEBOARD_SERVLET_MULTIPART_FILESIZETHRESHOLD, HTTP_WHITEBOARD_SERVLET_MULTIPART_LOCATION, HTTP_WHITEBOARD_SERVLET_MULTIPART_MAXFILESIZE, and HTTP_WHITEBOARD_SERVLET_MULTIPART_MAXREQUESTSIZE service properties.

See Also:
  • "Component Property Types"
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Service property identifying the multipart handling of a servlet.
    int
    Service property identifying the file size threshold for a multipart request handled by a servlet.
    Service property identifying the location for a multipart request handled by a servlet.
    long
    Service property identifying the max file size for a multipart request handled by a servlet.
    long
    Service property identifying the max request size for a multipart request handled by a servlet.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Prefix for the property name.
  • Field Details

    • PREFIX_

      static final String PREFIX_
      Prefix for the property name. This value is prepended to each property name.
      See Also:
  • Element Details

    • enabled

      boolean enabled
      Service property identifying the multipart handling of a servlet.
      Returns:
      Whether the servlet supports multipart handling.
      See Also:
      Default:
      true
    • fileSizeThreshold

      int fileSizeThreshold
      Service property identifying the file size threshold for a multipart request handled by a servlet.
      Returns:
      The file size threshold for a multipart request..
      See Also:
      Default:
      0
    • location

      String location
      Service property identifying the location for a multipart request handled by a servlet.
      Returns:
      The location for a multipart request..
      See Also:
      Default:
      ""
    • maxFileSize

      long maxFileSize
      Service property identifying the max file size for a multipart request handled by a servlet.
      Returns:
      The max file size for a multipart request..
      See Also:
      Default:
      -1L
    • maxRequestSize

      long maxRequestSize
      Service property identifying the max request size for a multipart request handled by a servlet.
      Returns:
      The max request size for a multipart request..
      See Also:
      Default:
      -1L