Search in sources :

Example 1 with HttpSessionWrapper

use of org.apache.felix.http.base.internal.handler.HttpSessionWrapper in project felix by apache.

the class WhiteboardManager method sessionDestroyed.

public void sessionDestroyed(@Nonnull final HttpSession session, final Set<String> contextNames) {
    for (final String contextName : contextNames) {
        final WhiteboardContextHandler handler = this.getContextHandler(contextName);
        if (handler != null) {
            final ExtServletContext context = handler.getServletContext(this.httpBundleContext.getBundle());
            new HttpSessionWrapper(session, context, true).invalidate();
            handler.ungetServletContext(this.httpBundleContext.getBundle());
        }
    }
}
Also used : ExtServletContext(org.apache.felix.http.base.internal.context.ExtServletContext) HttpSessionWrapper(org.apache.felix.http.base.internal.handler.HttpSessionWrapper)

Aggregations

ExtServletContext (org.apache.felix.http.base.internal.context.ExtServletContext)1 HttpSessionWrapper (org.apache.felix.http.base.internal.handler.HttpSessionWrapper)1