Annotation Type HttpWhiteboardServletMultipart
-
@ComponentPropertyType @Retention(CLASS) @Target(TYPE) public @interface HttpWhiteboardServletMultipart
Component Property Type for theosgi.http.whiteboard.servlet.multipart.enabled
,osgi.http.whiteboard.servlet.multipart.fileSizeThreshold
,osgi.http.whiteboard.servlet.multipart.location
,osgi.http.whiteboard.servlet.multipart.maxFileSize
, andosgi.http.whiteboard.servlet.multipart.maxRequestSize
service properties.This annotation can be used on a
Servlet
to declare the values of theHTTP_WHITEBOARD_SERVLET_MULTIPART_ENABLED
,HTTP_WHITEBOARD_SERVLET_MULTIPART_FILESIZETHRESHOLD
,HTTP_WHITEBOARD_SERVLET_MULTIPART_LOCATION
,HTTP_WHITEBOARD_SERVLET_MULTIPART_MAXFILESIZE
, andHTTP_WHITEBOARD_SERVLET_MULTIPART_MAXREQUESTSIZE
service properties.- Since:
- 1.1
- See Also:
- "Component Property Types"
-
-
Field Summary
Fields Modifier and Type Fields Description static java.lang.String
PREFIX_
Prefix for the property name.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
enabled
Service property identifying the multipart handling of a servlet.int
fileSizeThreshold
Service property identifying the file size threshold for a multipart request handled by a servlet.java.lang.String
location
Service property identifying the location for a multipart request handled by a servlet.long
maxFileSize
Service property identifying the max file size for a multipart request handled by a servlet.long
maxRequestSize
Service property identifying the max request size for a multipart request handled by a servlet.
-
-
-
Element Detail
-
enabled
boolean enabled
Service property identifying the multipart handling of a servlet.- Returns:
- Whether the servlet supports multipart handling.
- See Also:
HTTP_WHITEBOARD_SERVLET_MULTIPART_ENABLED
- 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:
HTTP_WHITEBOARD_SERVLET_MULTIPART_FILESIZETHRESHOLD
- Default:
- 0
-
-
-
location
java.lang.String location
Service property identifying the location for a multipart request handled by a servlet.- Returns:
- The location for a multipart request..
- See Also:
HTTP_WHITEBOARD_SERVLET_MULTIPART_LOCATION
- 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:
HTTP_WHITEBOARD_SERVLET_MULTIPART_MAXFILESIZE
- 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:
HTTP_WHITEBOARD_SERVLET_MULTIPART_MAXREQUESTSIZE
- Default:
- -1L
-
-