• Guide Services Links Forum
  • OSGi
    • Guide
    • Quick Start Tutorial
    • Overview
    • Building Service Oriented Systems
    • Base Tutorial
    • Principles
    • Service Catalog
    • Where to Find Stuff
  • Prev Next

    org.osgi.service.http

    Http Service Collaboration Diagram

    An OSGi framework normally provides users with access to services on the Internet and other net- works. This access allows users to remotely retrieve information from, and send control to, services in an OSGi framework using a standard web browser. Bundle developers typically need to develop communication and user interface solutions for stan- dard technologies such as HTTP, HTML, XML, and servlets.

    The Http Service supports two standard techniques for this purpose:

    • Registering servlets – A servlet is a Java object which implements the Java Servlet API. Registering a servlet in the Framework gives it control over some part of the Http Service URI name-space.
    • Registering resources – Registering a resource allows HTML files, image files, and other static re- sources to be made visible in the Http Service URI name-space by the requesting bundle. Implementations of the Http Service can be based on:
      • HTTP 1.0 Specification RFC-1945
      • HTTP 1.1 Specification RFC-2616

    Alternatively, implementations of this service can support other protocols if these protocols can conform to the semantics of the javax.servlet API. This additional support is necessary because the Http Service is closely related to [3] Java Servlet Technology. Http Service implementations must sup- port at least version 2.1 of the Java Servlet API.


    Prev Next