com.caucho.tools.profiler
Class ProfilerFilter

java.lang.Object
  extended by com.caucho.tools.profiler.ProfilerFilter
All Implemented Interfaces:
Filter

public class ProfilerFilter
extends java.lang.Object
implements Filter

Creates a ProfilerPoint for each invocation of doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain).


Constructor Summary
ProfilerFilter()
           
 
Method Summary
 void destroy()
          Cleanup the filter.
 void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain chain)
          doFilter performs the actual work of a filter, either modifying the request or the response.
 void init(FilterConfig filterConfig)
          Initialize the filter.
 boolean isUseQuery()
           
 void setUseQuery(boolean useQuery)
          If true, use the query portion of the url to distinguish requests, default is false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfilerFilter

public ProfilerFilter()
Method Detail

setUseQuery

public void setUseQuery(boolean useQuery)
If true, use the query portion of the url to distinguish requests, default is false.


isUseQuery

public boolean isUseQuery()

init

public void init(FilterConfig filterConfig)
          throws ServletException
Description copied from interface: Filter
Initialize the filter.

Specified by:
init in interface Filter
Throws:
ServletException

doFilter

public void doFilter(ServletRequest servletRequest,
                     ServletResponse servletResponse,
                     FilterChain chain)
              throws ServletException,
                     java.io.IOException
Description copied from interface: Filter
doFilter performs the actual work of a filter, either modifying the request or the response. It will typically call the chain.doFilter() to invoke the next filter in the chain.

Specified by:
doFilter in interface Filter
Parameters:
servletRequest - the servlet request
servletResponse - the servlet response
chain - the next filter in the chain
Throws:
ServletException
java.io.IOException

destroy

public void destroy()
Description copied from interface: Filter
Cleanup the filter.

Specified by:
destroy in interface Filter