public class JAMonServletFilter
extends javax.servlet.http.HttpServlet
implements javax.servlet.Filter
<web-app>
<display-name>jamon</display-name>
<filter>
<filter-name>JAMonServletFilter</filter-name>
<filter-class>com.jamonapi.http.JAMonServletFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>JAMonServletFilter</filter-name>
<url-pattern>*</url-pattern>
</filter-mapping>
Constructor and Description |
---|
JAMonServletFilter() |
Modifier and Type | Method and Description |
---|---|
void |
addSummaryLabel(String jamonSummaryLabel) |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain filterChain)
Servlet filter method that does the monitoring
|
boolean |
getEnabled() |
boolean |
getIgnoreHttpParams()
Containers (tomcat/jetty etc) put jessionid (and other params) as part of what is returned by HttpServletRequest.getRequestURI, and HttpServletRequest.getRequestURL.
|
int |
getSize() |
String |
getSummaryLabels() |
void |
init(javax.servlet.FilterConfig arg0) |
void |
setEnabled(boolean enable)
Enable/disable monitoring.
|
void |
setIgnoreHttpParams(boolean ignoreHttpParams)
Containers (tomcat/jetty etc) put jessionid (and other params) as part of what is returned by HttpServletRequest.getRequestURI, and HttpServletRequest.getRequestURL.
|
void |
setSize(int size)
Set maximum number of rows that can be in jamon before no more records are added.
|
void |
setSummaryLabels(String jamonSummaryLabels) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public void setSummaryLabels(String jamonSummaryLabels)
public String getSummaryLabels()
public void addSummaryLabel(String jamonSummaryLabel)
public boolean getIgnoreHttpParams()
public void setIgnoreHttpParams(boolean ignoreHttpParams)
public void setEnabled(boolean enable)
public int getSize()
public boolean getEnabled()
public void setSize(int size)
public void init(javax.servlet.FilterConfig arg0) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
Copyright © 2015. All rights reserved.