org.fusesource.fabric.jolokia
Class Activator

java.lang.Object
  extended by org.jolokia.osgi.JolokiaActivator
      extended by org.fusesource.fabric.jolokia.Activator
All Implemented Interfaces:
org.jolokia.osgi.servlet.JolokiaContext, org.osgi.framework.BundleActivator

public class Activator
extends org.jolokia.osgi.JolokiaActivator


Field Summary
 
Fields inherited from class org.jolokia.osgi.JolokiaActivator
HTTP_SERVICE_FILTER_BASE
 
Constructor Summary
Activator()
           
 
Method Summary
 org.osgi.service.http.HttpContext getHttpContext()
          Get the security context for out servlet.
 void start(org.osgi.framework.BundleContext pBundleContext)
           
 void stop(org.osgi.framework.BundleContext pBundleContext)
           
 
Methods inherited from class org.jolokia.osgi.JolokiaActivator
getServletAlias
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Activator

public Activator()
Method Detail

start

public void start(org.osgi.framework.BundleContext pBundleContext)
Specified by:
start in interface org.osgi.framework.BundleActivator
Overrides:
start in class org.jolokia.osgi.JolokiaActivator

stop

public void stop(org.osgi.framework.BundleContext pBundleContext)
Specified by:
stop in interface org.osgi.framework.BundleActivator
Overrides:
stop in class org.jolokia.osgi.JolokiaActivator

getHttpContext

public org.osgi.service.http.HttpContext getHttpContext()
Get the security context for out servlet. Dependent on the configuration, this is either a no-op context or one which authenticates with a given user

Specified by:
getHttpContext in interface org.jolokia.osgi.servlet.JolokiaContext
Overrides:
getHttpContext in class org.jolokia.osgi.JolokiaActivator
Returns:
the HttpContext with which the agent servlet gets registered.


Copyright © 2013 Red Hat. All Rights Reserved.