Class PaxWebIntegrationService


  • public class PaxWebIntegrationService
    extends Object
    Integration with pax-web, which allows to inject custom security constraint for securing resources by Keycloak.

    It assumes that pax-web WebContainer is used as implementation of OSGI HttpService, which is true in karaf/fuse environment

    Author:
    Marek Posolda
    • Field Detail

      • log

        protected static final org.jboss.logging.Logger log
    • Constructor Detail

      • PaxWebIntegrationService

        public PaxWebIntegrationService()
    • Method Detail

      • getBundleContext

        public org.osgi.framework.BundleContext getBundleContext()
      • setBundleContext

        public void setBundleContext​(org.osgi.framework.BundleContext bundleContext)
      • getWebContainerTracker

        protected org.osgi.util.tracker.ServiceTracker getWebContainerTracker()
      • getHttpContext

        protected org.osgi.service.http.HttpContext getHttpContext()
      • setHttpContext

        public void setHttpContext​(org.osgi.service.http.HttpContext httpContext)
      • start

        public void start()
      • stop

        public void stop()
      • addingWebContainerCallback

        protected org.ops4j.pax.web.service.WebContainer addingWebContainerCallback​(org.osgi.framework.ServiceReference webContainerServiceReference)
      • removingWebContainerCallback

        protected void removingWebContainerCallback​(org.osgi.framework.ServiceReference serviceReference)