public class ServletReregistrationService extends Object
Servlet
interface.
The point is to register automatically registered builtin servlet endpoints (like "/cxf" for instance) to allow secure them by Keycloak and re-register them again
Modifier and Type | Field and Description |
---|---|
protected static org.jboss.logging.Logger |
log |
Constructor and Description |
---|
ServletReregistrationService() |
Modifier and Type | Method and Description |
---|---|
protected org.ops4j.pax.web.service.WebContainer |
findExternalWebContainer()
Find web container in the bundle, where was servlet originally registered
|
org.osgi.framework.BundleContext |
getBundleContext() |
org.osgi.framework.ServiceReference |
getManagedServiceReference() |
protected void |
registerServlet(org.ops4j.pax.web.service.WebContainer webContainer,
Dictionary properties)
Code comes from org.apache.cxf.transport.http.osgi.ServletExporter#updated(java.util.Dictionary)
|
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
void |
setManagedServiceReference(org.osgi.framework.ServiceReference managedServiceReference) |
void |
start() |
void |
stop() |
public org.osgi.framework.BundleContext getBundleContext()
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
public void start()
public void stop()
protected void registerServlet(org.ops4j.pax.web.service.WebContainer webContainer, Dictionary properties)
webContainer
- properties
- protected org.ops4j.pax.web.service.WebContainer findExternalWebContainer()
public org.osgi.framework.ServiceReference getManagedServiceReference()
public void setManagedServiceReference(org.osgi.framework.ServiceReference managedServiceReference)
Copyright © 2018 JBoss by Red Hat. All rights reserved.