• Guide Tutorials Examples Services App notes Links FAQ Forum
  • Guide
    Tutorials
    Example Projects
    Documentation
    Service Catalog
    OSGi Specifications
    App Notes
    Where to Find Stuff
    Videos
    Known Issues
    Frequently Asked Questions
  • Prev Next

    This website and its associated repositories, are deprecated and no longer supported by the OSGi Alliance. Please visit https://enroute.osgi.org for the latest supported version of OSGi enRoute.

    This enRoute v2 archive site is kept for those who do not intend to use the latest version of OSGi enRoute. If you are new to OSGi enRoute, then please start with the latest OSGi enRoute.

    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
    • Copyright © 2021 OSGi™ Alliance.