The HTTP Service is essential for the proper functioning of an OSGi runtime – it realizes the server functionality of the Hypertext Transfer Protocol (HTTP) specified in RFC 2616 and is the basic platform for accessing remotely the OSGi framework over the Internet.
Bosch Iot Gateway Software Runtime 9.2.0 provides an OSGi HttpService implementation from Eclipse Equinox based on the Jetty Servlet Engine and HTTP Server. A migration guide is also available.
The deprecated Bosch HTTP Service implementation, can still be used when the runtime is started with clean storage and with the "server httpcompat" command.
The HTTP Service is registered as both HttpService and HttpHelper. One registration is used for both HttpService and HttpHelper, so if there are multiple HttpService instances, there will be the same number of HttpHelper instances. Moreover, if you want direct access to a resource or servlet that was registered in one HttpService instance, you must use the corresponding HttpHelper instance.
The HTTP Service in the HTTP Bundle is developed to comply with the OSGi HTTP Service Specification. The service declares the org.osgi.service.http.HttpService OSGi interface. Installed bundles can register resources and servlets with the HTTP Service so that clients can access them simultaneously over plain and secure HTTP connections. Multiple HTTP Services can be registered with different name registration property – refer to the OSGi HTTP Bundle system and configuration properties for more details, thus creating multiple servers.
Registering bundle
The service is registered by OSGi HTTP Bundle (deprecated).