public class PaxWebIntegrationService extends Object
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
| Modifier and Type | Field and Description |
|---|---|
protected static org.jboss.logging.Logger |
log |
| Constructor and Description |
|---|
PaxWebIntegrationService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addConstraintMapping(org.ops4j.pax.web.service.WebContainer service,
org.eclipse.jetty.security.ConstraintMapping constraintMapping) |
protected void |
addConstraintMapping(org.ops4j.pax.web.service.WebContainer service,
org.ops4j.pax.web.service.spi.model.SecurityConstraintMappingModel constraintMapping) |
protected org.ops4j.pax.web.service.WebContainer |
addingWebContainerCallback(org.osgi.framework.ServiceReference webContainerServiceReference) |
protected void |
addJettyWebXml(org.ops4j.pax.web.service.WebContainer service) |
org.osgi.framework.BundleContext |
getBundleContext() |
List<Object> |
getConstraintMappings() |
protected org.osgi.service.http.HttpContext |
getHttpContext() |
String |
getJettyWebXmlLocation() |
protected org.osgi.util.tracker.ServiceTracker |
getWebContainerTracker() |
protected void |
removingWebContainerCallback(org.osgi.framework.ServiceReference serviceReference) |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
void |
setConstraintMappings(List<Object> constraintMappings) |
void |
setHttpContext(org.osgi.service.http.HttpContext httpContext) |
void |
setJettyWebXmlLocation(String jettyWebXmlLocation) |
void |
start() |
void |
stop() |
public org.osgi.framework.BundleContext getBundleContext()
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
public String getJettyWebXmlLocation()
public void setJettyWebXmlLocation(String jettyWebXmlLocation)
protected org.osgi.util.tracker.ServiceTracker getWebContainerTracker()
protected org.osgi.service.http.HttpContext getHttpContext()
public void setHttpContext(org.osgi.service.http.HttpContext httpContext)
public void start()
public void stop()
protected org.ops4j.pax.web.service.WebContainer addingWebContainerCallback(org.osgi.framework.ServiceReference webContainerServiceReference)
protected void addJettyWebXml(org.ops4j.pax.web.service.WebContainer service)
protected void addConstraintMapping(org.ops4j.pax.web.service.WebContainer service,
org.ops4j.pax.web.service.spi.model.SecurityConstraintMappingModel constraintMapping)
protected void addConstraintMapping(org.ops4j.pax.web.service.WebContainer service,
org.eclipse.jetty.security.ConstraintMapping constraintMapping)
protected void removingWebContainerCallback(org.osgi.framework.ServiceReference serviceReference)
Copyright © 2021 JBoss by Red Hat. All rights reserved.