Previous Topic

Next Topic

Book Contents

Book Index

Creating Standalone HTTP Server (deprecated)

Overview

The SHS is not a full featured HTTP Server. It supports only the functionality needed to create WebSockets.

The Bosch IoT Gateway Software WebSockets Server supports the creation of SHS by using the OSGi configuration.

If an OSGi configuration is not properly created/updated (for example the port already is in use), an exception will be thrown and the operation will be unsuccessful.

When the Bosch IoT Gateway Software WebSockets module is installed and started and the mbs.mtp.osgi.createConfigs System property is not explicitly set to false an OSGi configuration for SHS is created. It will attempt to start a SHS at port 8082 (if the configuration is correct the SHS will be started, otherwise an exception is thrown and the SHS won't start.) Setting the mbs.mtp.osgi.createConfigs property to false will disable all default OSGi configurations, which may lead to unexpected behavior in other Bosch IoT Gateway Software components. If the SHS is not needed, the safest solution to delete the server is to manually delete the corresponding OSGi configuration after every clean start of the Bosch IoT Gateway Software.

Standalone HTTP Server Configuration Properties

All of the Server properties can be changed once the it is started. They are as follows:

Securing the Standalone HTTP Server

To make a SHS secure you need a custom SSLServerSocketFactory implementation. If you have one you must register it as an OSGi Service with the corresponding Service PID.

Once a configuration with a filter property is created an LDAP filter is used to track the SSLServerSocketFactory services.

There is no guarantee that the Standalone Server will be secure, it is assumed so because of the SSLServerSocketFactory is used.

Standalone HTTP Server Events

When a configuration is updated a proper configurations must be provided.