Class PaxWebIntegrationService


  • public class PaxWebIntegrationService
    extends Object
    Integration with pax-web in Fuse 6.3, which allows to inject custom jetty-web.xml configuration from current bundle classpath into WebContainer and 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)
      • getJettyWebXmlLocation

        public String getJettyWebXmlLocation()
      • setJettyWebXmlLocation

        public void setJettyWebXmlLocation​(String jettyWebXmlLocation)
      • getConstraintMappings

        public List<Object> getConstraintMappings()
      • setConstraintMappings

        public void setConstraintMappings​(List<Object> constraintMappings)
      • getWebContainerTracker

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

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

        public void start()
      • stop

        public void stop()
      • addingWebContainerCallback

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

        protected void addJettyWebXml​(org.ops4j.pax.web.service.WebContainer service)
      • addConstraintMapping

        protected void addConstraintMapping​(org.ops4j.pax.web.service.WebContainer service,
                                            PaxWebSecurityConstraintMapping constraintMapping)
      • addConstraintMapping

        protected void addConstraintMapping​(org.ops4j.pax.web.service.WebContainer service,
                                            org.eclipse.jetty.security.ConstraintMapping constraintMapping)
      • removingWebContainerCallback

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