Annotation Interface HttpWhiteboardResource


@ComponentPropertyType @Retention(CLASS) @Target(TYPE) @RequireHttpWhiteboard public @interface HttpWhiteboardResource
Component Property Type for the osgi.http.whiteboard.resource.pattern and osgi.http.whiteboard.resource.prefix service properties.

This annotation can be used on any service to declare the values of the HTTP_WHITEBOARD_RESOURCE_PATTERN and HTTP_WHITEBOARD_RESOURCE_PREFIX service properties.

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

    Required Elements
    Modifier and Type
    Required Element
    Description
    Service property specifying the request mappings for resources.
    Service property specifying the resource entry prefix for a resource service.
  • 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

    • 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:
    • 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: