Chapter 18. HTTP Support

In Chapter 7, “Client/Server Interaction,” we saw how to set up a simple client/server system using the OSGi HttpService. In Chapter 12, “Dynamic Configuration,” Toast used the HttpService to present a simple web UI for configuring the client’s tracking frequency. In this chapter we take a deeper look at this service and how to make the most of its capabilities.

The HttpService has been part of the OSGi specification since its inception. It allows applications to register servlets and resources to be served in response to HTTP requests. Since OSGi has always been about network-aware gateway devices, support for HTTP makes sense. In the broader enterprise and distributed application context, HTTP has proved to be a good ...

Get OSGi and Equinox now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.