com.atlassian.confluence.util.profiling
Class ProfilingPageFilter

java.lang.Object
  extended by com.opensymphony.module.sitemesh.filter.PageFilter
      extended by com.atlassian.confluence.util.profiling.ProfilingPageFilter
All Implemented Interfaces:
com.opensymphony.module.sitemesh.RequestConstants, javax.servlet.Filter

public class ProfilingPageFilter
extends com.opensymphony.module.sitemesh.filter.PageFilter

An extension of the SiteMesh PageFilter which adds profiling and delegates to ConfluenceSitemeshDecorator for the actual decoration.

See Also:
PageFilter

Field Summary
 
Fields inherited from class com.opensymphony.module.sitemesh.filter.PageFilter
factory, filterConfig
 
Fields inherited from interface com.opensymphony.module.sitemesh.RequestConstants
DECORATOR, FILTER_APPLIED, PAGE, ROBOT, USING_STREAM
 
Constructor Summary
ProfilingPageFilter()
           
 
Method Summary
protected  void applyDecorator(com.opensymphony.module.sitemesh.Page page, com.opensymphony.module.sitemesh.Decorator decorator, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
static void ensureFactorySetup(javax.servlet.ServletConfig servletConfig)
           
static com.opensymphony.module.sitemesh.Factory getFactory()
           
 void init(javax.servlet.FilterConfig filterConfig)
           
protected  com.opensymphony.module.sitemesh.Page parsePage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse httpServletResponse, javax.servlet.FilterChain filterChain)
           
static void setupFactory(javax.servlet.ServletConfig servletConfig)
          Hack to make sure a factory is setup even if the filter has not be init'ed by the servlet container yet.
 
Methods inherited from class com.opensymphony.module.sitemesh.filter.PageFilter
destroy, doFilter, getFilterConfig, setFilterConfig, writeDecorator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfilingPageFilter

public ProfilingPageFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig filterConfig)
Specified by:
init in interface javax.servlet.Filter
Overrides:
init in class com.opensymphony.module.sitemesh.filter.PageFilter

getFactory

public static com.opensymphony.module.sitemesh.Factory getFactory()

ensureFactorySetup

public static void ensureFactorySetup(javax.servlet.ServletConfig servletConfig)

setupFactory

public static void setupFactory(javax.servlet.ServletConfig servletConfig)
Hack to make sure a factory is setup even if the filter has not be init'ed by the servlet container yet.

See Also:
XmlRpcServer

applyDecorator

protected void applyDecorator(com.opensymphony.module.sitemesh.Page page,
                              com.opensymphony.module.sitemesh.Decorator decorator,
                              javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)
                       throws javax.servlet.ServletException,
                              IOException
Overrides:
applyDecorator in class com.opensymphony.module.sitemesh.filter.PageFilter
Throws:
javax.servlet.ServletException
IOException

parsePage

protected com.opensymphony.module.sitemesh.Page parsePage(javax.servlet.http.HttpServletRequest request,
                                                          javax.servlet.http.HttpServletResponse httpServletResponse,
                                                          javax.servlet.FilterChain filterChain)
                                                   throws IOException,
                                                          javax.servlet.ServletException
Overrides:
parsePage in class com.opensymphony.module.sitemesh.filter.PageFilter
Throws:
IOException
javax.servlet.ServletException


Copyright © 2003-2011 Atlassian. All Rights Reserved.