Interface HttpContextFactoryService


public interface HttpContextFactoryService
Create HttpContext instances when registering servlets, resources or filters using the HttpService.registerServlet(java.lang.String, javax.servlet.Servlet, java.util.Dictionary<?, ?>, org.osgi.service.http.HttpContext) and corresponding methods.
Author:
Henning Treu - Initial contribution
  • Method Summary

    Modifier and Type
    Method
    Description
    org.osgi.service.http.HttpContext
    createDefaultHttpContext(org.osgi.framework.Bundle bundle)
    Creates an HttpContext according to the OSGi specification of HttpService.createDefaultHttpContext().
  • Method Details

    • createDefaultHttpContext

      org.osgi.service.http.HttpContext createDefaultHttpContext(org.osgi.framework.Bundle bundle)
      Creates an HttpContext according to the OSGi specification of HttpService.createDefaultHttpContext().
      Parameters:
      bundle - the bundle which will be used by this HttpContext to resolve resources.
      Returns:
      the HttpContext for the given bundle.