Package org.jolokia.server.core.osgi
Class OsgiAgentActivator
java.lang.Object
org.jolokia.server.core.osgi.OsgiAgentActivator
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
OSGi Activator for the Jolokia Agent using Whiteboard Servlet specification
- Since:
- Dec 27, 2009
- Author:
- roland
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.osgi.service.servlet.context.ServletContextHelperGet the security context for our servlet.Get the servlet context path under which the agent servlet is registeredvoidstart(org.osgi.framework.BundleContext pBundleContext) voidstop(org.osgi.framework.BundleContext pBundleContext)
-
Constructor Details
-
OsgiAgentActivator
public OsgiAgentActivator()
-
-
Method Details
-
start
public void start(org.osgi.framework.BundleContext pBundleContext) - Specified by:
startin interfaceorg.osgi.framework.BundleActivator
-
stop
public void stop(org.osgi.framework.BundleContext pBundleContext) - Specified by:
stopin interfaceorg.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
Get the servlet context path under which the agent servlet is registered- Returns:
- get the servlet context path
-