Class PaxWebIntegrationService
- java.lang.Object
-
- org.keycloak.adapters.osgi.jetty94.PaxWebIntegrationService
-
public class PaxWebIntegrationService extends Object
Integration with pax-web, which allows to inject custom jetty-web.xml configuration from current bundle classpath intoWebContainerand allows to inject custom security constraint for securing resources by Keycloak.It assumes that pax-web
WebContaineris used as implementation of OSGIHttpService, which is true in karaf/fuse environment- Author:
- Marek Posolda
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.jboss.logging.Loggerlog
-
Constructor Summary
Constructors Constructor Description PaxWebIntegrationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddConstraintMapping(org.ops4j.pax.web.service.WebContainer service, org.eclipse.jetty.security.ConstraintMapping constraintMapping)protected voidaddConstraintMapping(org.ops4j.pax.web.service.WebContainer service, org.ops4j.pax.web.service.spi.model.SecurityConstraintMappingModel constraintMapping)protected org.ops4j.pax.web.service.WebContaineraddingWebContainerCallback(org.osgi.framework.ServiceReference webContainerServiceReference)protected voidaddJettyWebXml(org.ops4j.pax.web.service.WebContainer service)org.osgi.framework.BundleContextgetBundleContext()List<Object>getConstraintMappings()protected org.osgi.service.http.HttpContextgetHttpContext()StringgetJettyWebXmlLocation()protected org.osgi.util.tracker.ServiceTrackergetWebContainerTracker()protected voidremovingWebContainerCallback(org.osgi.framework.ServiceReference serviceReference)voidsetBundleContext(org.osgi.framework.BundleContext bundleContext)voidsetConstraintMappings(List<Object> constraintMappings)voidsetHttpContext(org.osgi.service.http.HttpContext httpContext)voidsetJettyWebXmlLocation(String jettyWebXmlLocation)voidstart()voidstop()
-
-
-
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)
-
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)
-
addJettyWebXml
protected void addJettyWebXml(org.ops4j.pax.web.service.WebContainer service)
-
addConstraintMapping
protected void addConstraintMapping(org.ops4j.pax.web.service.WebContainer service, org.ops4j.pax.web.service.spi.model.SecurityConstraintMappingModel 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)
-
-