Annotation Type HttpWhiteboardResource
-
@ComponentPropertyType @Retention(CLASS) @Target(TYPE) @RequireHttpWhiteboard public @interface HttpWhiteboardResource
Component Property Type for theosgi.http.whiteboard.resource.patternandosgi.http.whiteboard.resource.prefixservice properties.This annotation can be used on any service to declare the values of the
HTTP_WHITEBOARD_RESOURCE_PATTERNandHTTP_WHITEBOARD_RESOURCE_PREFIXservice properties.- Since:
- 1.1
- See Also:
- "Component Property Types"
-
-
Field Detail
-
PREFIX_
static final String PREFIX_
Prefix for the property name. This value is prepended to each property name.
-
-
Element Detail
-
pattern
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
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
-
-