public class FilterInjector extends Object implements org.osgi.framework.hooks.service.EventListenerHook
DelegateServletFilter into the ServletContext with properties
filterName = DELEGATING_FILTER, urlPatterns = ALL_URLS, and no servlet name as the ServletContext is being created.
Sets up all Servlets with the DelegateServletFilter as the first in
the FilterChain.| Constructor and Description |
|---|
FilterInjector(javax.servlet.Filter filter)
Creates a new filter injector with the specified filter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(org.osgi.framework.ServiceReference<javax.servlet.http.HttpSessionListener> sessionListener) |
void |
event(org.osgi.framework.ServiceEvent event,
Map<org.osgi.framework.BundleContext,Collection<org.osgi.framework.hooks.service.ListenerHook.ListenerInfo>> listeners) |
void |
removeListener(org.osgi.framework.ServiceReference<javax.servlet.http.HttpSessionListener> sessionListener) |
public FilterInjector(javax.servlet.Filter filter)
filter - filter that should be injected.public void event(org.osgi.framework.ServiceEvent event,
Map<org.osgi.framework.BundleContext,Collection<org.osgi.framework.hooks.service.ListenerHook.ListenerInfo>> listeners)
event in interface org.osgi.framework.hooks.service.EventListenerHookpublic void addListener(org.osgi.framework.ServiceReference<javax.servlet.http.HttpSessionListener> sessionListener)
public void removeListener(org.osgi.framework.ServiceReference<javax.servlet.http.HttpSessionListener> sessionListener)
This work is licensed under a Creative Commons Attribution 4.0 International License.