public class ProfilerFilter extends java.lang.Object implements Filter
ProfilerPoint
for each invocation of doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
.Constructor and Description |
---|
ProfilerFilter() |
Modifier and Type | Method and Description |
---|---|
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.
|
public void setUseQuery(boolean useQuery)
public boolean isUseQuery()
public void init(FilterConfig filterConfig) throws ServletException
Filter
init
in interface Filter
ServletException
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain chain) throws ServletException, java.io.IOException
Filter
doFilter
in interface Filter
servletRequest
- the servlet requestservletResponse
- the servlet responsechain
- the next filter in the chainServletException
java.io.IOException