public class XWikiContextInitializationFilter extends Object implements javax.servlet.Filter
Constructor and Description |
---|
XWikiContextInitializationFilter() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanupComponents()
We must ensure we clean the ThreadLocal variables located in the Container and Execution components as otherwise
we will have a potential memory leak.
|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
void |
init(javax.servlet.FilterConfig filterConfig) |
protected void |
initializeContainerComponent(XWikiContext context) |
protected void |
initializeXWikiContext(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
Initializes the XWiki context.
|
public void destroy()
destroy
in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
protected void initializeXWikiContext(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws javax.servlet.ServletException
request
- the request being processedresponse
- the responsejavax.servlet.ServletException
- if the initialization failsprotected void initializeContainerComponent(XWikiContext context) throws javax.servlet.ServletException
context
- the XWiki contextjavax.servlet.ServletException
- if the container component initialization failsprotected void cleanupComponents()
Copyright © 2004–2021 XWiki. All rights reserved.