Interface WrappingHttpContext

  • All Superinterfaces:
    org.osgi.service.http.HttpContext

    public interface WrappingHttpContext
    extends org.osgi.service.http.HttpContext
    Extension of standard HttpContext interface which allows creation of "sub contexts". These sub contexts are nothing else but custom resource locators which provide new files to host, but should not influence overall processing logic of HttpContext.handleSecurity(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) and HttpContext.getMimeType(String).
    Author:
    Ɓukasz Dywicki - Initial contribution
    • Field Summary

      • Fields inherited from interface org.osgi.service.http.HttpContext

        AUTHENTICATION_TYPE, AUTHORIZATION, REMOTE_USER
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.osgi.service.http.HttpContext wrap​(org.osgi.framework.Bundle bundle)
      Creates new http context which hosts resources from given bundle.
      • Methods inherited from interface org.osgi.service.http.HttpContext

        getMimeType, getResource, handleSecurity
    • Method Detail

      • wrap

        org.osgi.service.http.HttpContext wrap​(org.osgi.framework.Bundle bundle)
        Creates new http context which hosts resources from given bundle.
        Parameters:
        bundle - Bundle with resources.
        Returns:
        New context instance.