Class SharedHttpContext

java.lang.Object
org.osgi.service.http.context.ServletContextHelper
org.opencastproject.kernel.http.SharedHttpContext

public class SharedHttpContext extends org.osgi.service.http.context.ServletContextHelper
Opencast's shared HttpContext. All Servlet and StaticResource registrations should use the HttpContext that is registered with the OSGi service registry.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.osgi.framework.BundleContext
    This osgi bundle's bundlecontext

    Fields inherited from class org.osgi.service.http.context.ServletContextHelper

    AUTHENTICATION_TYPE, AUTHORIZATION, REMOTE_USER
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    activate(org.osgi.service.component.ComponentContext cc)
    Activate the component
    void
    Deactivate the component
    boolean
    handleSecurity(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)

    Methods inherited from class org.osgi.service.http.context.ServletContextHelper

    finishSecurity, getRealPath, getResourcePaths

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • bundleContext

      protected org.osgi.framework.BundleContext bundleContext
      This osgi bundle's bundlecontext
  • Constructor Details

    • SharedHttpContext

      public SharedHttpContext()
  • Method Details

    • activate

      public void activate(org.osgi.service.component.ComponentContext cc)
      Activate the component
    • deactivate

      public void deactivate()
      Deactivate the component
    • getMimeType

      public String getMimeType(String name)
      Overrides:
      getMimeType in class org.osgi.service.http.context.ServletContextHelper
      See Also:
      • HttpContext.getMimeType(java.lang.String)
    • getResource

      public URL getResource(String path)
      Overrides:
      getResource in class org.osgi.service.http.context.ServletContextHelper
      See Also:
      • HttpContext.getResource(java.lang.String)
    • handleSecurity

      public boolean handleSecurity(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
      Overrides:
      handleSecurity in class org.osgi.service.http.context.ServletContextHelper
      Throws:
      IOException
      See Also:
      • HttpContext.handleSecurity(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)