|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xpn.xwiki.wysiwyg.server.filter.XWikiContextInitializationFilter
public class XWikiContextInitializationFilter
This filter can be used to initialize the XWiki context before processing a request.
| Constructor Summary | |
|---|---|
XWikiContextInitializationFilter()
|
|
| Method Summary | |
|---|---|
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(com.xpn.xwiki.XWikiContext context)
|
protected void |
initializeXWikiContext(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
Initializes the XWiki context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XWikiContextInitializationFilter()
| Method Detail |
|---|
public void destroy()
destroy in interface javax.servlet.FilterFilter.destroy()
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.Filterjava.io.IOException
javax.servlet.ServletExceptionFilter.doFilter(ServletRequest, ServletResponse, FilterChain)
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionFilter.init(FilterConfig)
protected void initializeXWikiContext(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
throws javax.servlet.ServletException
request - the request being processedresponse - the response
javax.servlet.ServletException - if the initialization fails
protected void initializeContainerComponent(com.xpn.xwiki.XWikiContext context)
throws javax.servlet.ServletException
context - the XWiki context
javax.servlet.ServletException - if the container component initialization failsprotected void cleanupComponents()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||