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

See Also:
PageFilter

Nested Class Summary
static class ProfilingPageFilter.VelocitySitemeshPage
          Sitemesh page with a getProperty method that is declared as HTML safe
 
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()

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,
                              java.io.IOException
Overrides:
applyDecorator in class com.opensymphony.module.sitemesh.filter.PageFilter
Throws:
javax.servlet.ServletException
java.io.IOException

parsePage

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

ensureFactorySetup

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


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.