Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Standard Http Service implementation.
  • Extended Http Service implementation that allows for servlet filter registration.
  • Run either with Jetty or inside your own application server using the servlet bridge.
  • A whiteboard implementation for easy registration of servlets and filters.
  • One complete bundle that includes everything to simplify deployment.

Installing

...

The Apache Felix HTTP Service bundle can be installed and executed in any R4 OSGi container, and requires only the OSGi R4 Compendium bundle as a prerequisite.

...

The Apache Felix Http project includes several bundles.

  • org.apache.felix.http.jetty - Http Service implementation that is embedding Jetty server.
  • org.apache.felix.http.whiteboard - Whiteboard implementation that uses any Http Service implementation.
  • org.apache.felix.http.bridge - Http Service implementation that uses the host applicaiton server (bridged mode). Must be used with proxy.
  • org.apache.felix.http.bundle - All in one bundle that includes all of the above.
  • org.apache.felix.http.proxy - Proxy that is needed inside WAR when deployed inside an application server.

So, in most cases you could just use org.apache.felix.http.bundle and forget about all the other ones.

Using the Http Service

The main components provided by the Apache Felix HTTP Http Service bundle are:

  • HttpService - Service used to dynamically register resources and servlets
  • HttpContext - Additional (optional) component to handle authentication, resource and mime type mappings

...