7.2. The HTTP Service

The HTTP service in the Java Embedded Server product is a lightweight HTTP server. By having it on the gateway, information can be retrieved from and controls can be directed to the gateway through standardized technology such as the Java™ Servlet API and HTML. We also benefit from one of the most universal front-end user interfaces: the Web browser. This saves us from a tremendous amount of effort in creating proprietary solutions that are slow to develop and unfamiliar to end users.

We first look at how to use the OSGi standard HttpService API, and then we look at the extended features provided by the Java Embedded Server implementation.

7.2.1. The Standard HttpService API

The HttpService API allows you to register servlets ...

Get Programming Open Service Gateways with Java Embedded Server™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.