public class JAMonTomcatValve
extends org.apache.catalina.valves.ValveBase
Note
<Engine name="Catalina" defaultHost="localhost" debug="0">
<Valve className="com.jamonapi.http.JAMonTomcatValve"/>
<Valve className="com.jamontomcat.JAMonTomcatValve" size="10000" summaryLabels="default"/>
<Valve className="com.jamonapi.http.JAMonTomcatValve" summaryLabels="request.getRequestURI().ms, response.getContentCount().bytes, response.getStatus().value.httpStatus">
<Valve className="com.jamonapi.http.JAMonTomcatValve summaryLabels="request.getRequestURI().ms, request.getRequestURI().value.ms, response.getContentCount().pageBytes,response.getStatus().httpStatusCode, response.getStatus().value.httpStatusCode, response.getContentType().value.type"/>
...
Constructor and Description |
---|
JAMonTomcatValve() |
Modifier and Type | Method and Description |
---|---|
void |
addSummaryLabel(String jamonSummaryLabel) |
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.
|
String |
getInfo() |
int |
getSize() |
String |
getSummaryLabels() |
void |
invoke(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response)
Extract the desired request property, and pass it (along with the
specified request and response objects) to the protected
process() method to perform the actual filtering. |
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) |
backgroundProcess, createObjectName, event, getContainer, getContainerName, getController, getDomain, getNext, getObjectName, getParentName, postDeregister, postRegister, preDeregister, preRegister, setContainer, setController, setNext, setObjectName, toString
public void invoke(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response) throws IOException, javax.servlet.ServletException
process()
method to perform the actual filtering.
This method must be implemented by a concrete subclass.invoke
in interface org.apache.catalina.Valve
invoke
in class org.apache.catalina.valves.ValveBase
request
- The servlet request to be processedresponse
- The servlet response to be createdIOException
- if an input/output error occursjavax.servlet.ServletException
- if a servlet error occurs
http://www.jdocs.com/tomcat/5.5.17/org/apache/catalina/valves/RequestFilterValve.htmlpublic 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 String getInfo()
getInfo
in interface org.apache.catalina.Valve
getInfo
in class org.apache.catalina.valves.ValveBase
Copyright © 2015. All rights reserved.