HTTP Access

For headless targets that support TCP/IP, the example bundle SAT Bundle Dependency Servlet that publishes a servlet that can be queried via HTTP. The servlet interface supports both data results, suitable for remote programmatic access, and HTML results, suitable for rendering in a web browser. For the servlet to be published a bundle that registers the org.osgi.service.http.HttpService must also be installed on the target.

Assuming that the servlet is installed and registered with the HttpService on localhost using port 80, it can be accessed remotely via HTTP. The following example HTTP queries about the LogService bundle return data results:

The HTTP query http://localhost:80/bds?action=browse returns HTML suitable for rendering in a web browser. For example:

HTTP access via a browser