public interface RestApiExtension
The REST service provides a RESTful interface to clients that need to manage an OSGi framework through a network connection. Other components running on the same framework can contribute their own specific REST interface and make it available and discoverable by registering this marker service using the Whiteboard pattern.
Integration of third-party REST interfaces with the framework REST service on the implementation level might not always be possible since it requires knowledge about the underlying implementation and an extension mechanism on that level. Specific technologies such as servlets might support this but the REST service could as well be implemented without the use of a supporting abstraction layer and not offer extensibility.
Using this marker service, the REST service includes the advertised service in the Extensions Resource, allowing clients to discover it and use the extension's functionality.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
This service property describes the package name of the technology
manageable by this REST API extension.
|
static java.lang.String |
SERVICE
This service property refers to the id of the service the REST API
extension provides management capabilities for.
|
static java.lang.String |
URI_PATH
This service property describes a URI to the REST extension on this local
machine.
|
static final java.lang.String URI_PATH
java.lang.String
and the property is mandatory.static final java.lang.String NAME
java.lang.String
and the property is mandatory.static final java.lang.String SERVICE
java.lang.Long
and the property is optional; if the REST
extension is not directly associated with a service in the service
registry, the property should not be set.Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0