Class OsgiAgentActivator

java.lang.Object
org.jolokia.server.core.osgi.OsgiAgentActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class OsgiAgentActivator extends Object implements org.osgi.framework.BundleActivator
OSGi Activator for the Jolokia Agent using Whiteboard Servlet specification
Since:
Dec 27, 2009
Author:
roland
  • Constructor Details

    • OsgiAgentActivator

      public OsgiAgentActivator()
  • Method Details

    • start

      public void start(org.osgi.framework.BundleContext pBundleContext)
      Specified by:
      start in interface org.osgi.framework.BundleActivator
    • stop

      public void stop(org.osgi.framework.BundleContext pBundleContext)
      Specified by:
      stop in interface org.osgi.framework.BundleActivator
    • getServletContextHelper

      public org.osgi.service.servlet.context.ServletContextHelper getServletContextHelper()
      Get the security context for our servlet. Dependent on the configuration, this is either a no-op context or one which authenticates with a given user
      Returns:
      the HttpContext with which the agent servlet gets registered.
    • getServletContextPath

      public String getServletContextPath()
      Get the servlet context path under which the agent servlet is registered
      Returns:
      get the servlet context path