Annotation Type HttpWhiteboardResource
-
@ComponentPropertyType @Retention(CLASS) @Target(TYPE) @RequireHttpWhiteboard public @interface HttpWhiteboardResource
Component Property Type for theosgi.http.whiteboard.resource.pattern
andosgi.http.whiteboard.resource.prefix
service properties.This annotation can be used on any service to declare the values of the
HTTP_WHITEBOARD_RESOURCE_PATTERN
andHTTP_WHITEBOARD_RESOURCE_PREFIX
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.
-
-
-
Element Detail
-
pattern
java.lang.String[] pattern
Service property specifying the request mappings for resources. The specified patterns are used to determine whether a request should be mapped to resources.- Returns:
- The resource patterns.
- See Also:
HTTP_WHITEBOARD_RESOURCE_PATTERN
-
-
-
prefix
java.lang.String prefix
Service property specifying the resource entry prefix for a resource service. This prefix is used to map a requested resource to the bundle's entries. The value must not end with slash ("/") with the exception that a name of the form "/" is used to denote the root of the bundle.- Returns:
- The resource prefix.
- See Also:
HTTP_WHITEBOARD_RESOURCE_PREFIX
-
-