01: package com.jamonapi.http;
02:
03: /** Interface for controlling what http request/response info that should be monitored */
04: interface HttpMonManage {
05: public void setSummaryLabels(String jamonSummaryLabels);
06:
07: public String getSummaryLabels();
08:
09: public void addSummaryLabel(String jamonSummaryLabel);
10:
11: /**
12: * Containers (tomcat/jetty etc) put jessionid (and other params) as part of what is returned by HttpServletRequest.getRequestURI, and HttpServletRequest.getRequestURL.
13: * This can make many pages not unique enough to benefit from jamon, so by default this part of the url is removed from the monitoring label.
14: * Example this: /myapp/mypage.jsp;jsessionid=320sljsdofou
15: * becomes this in the jamon label: /myapp/mypage.jsp
16: *
17: * getIgnoreHttpParams() - return if this is enabled or disabled (true means the params will be removed/ignored. This is the default behaviour)
18: * setIgnoreHttpParams(boolean httpIgnoreParams) - set whether it is enabled or disabled (true means the params will be removed/ignored. This is the default behaviour)
19: *
20: */
21: public boolean getIgnoreHttpParams();
22:
23: /**
24: * Containers (tomcat/jetty etc) put jessionid (and other params) as part of what is returned by HttpServletRequest.getRequestURI, and HttpServletRequest.getRequestURL.
25: * This can make many pages not unique enough to benefit from jamon, so by default this part of the url is removed from the monitoring label.
26: * Example this: /myapp/mypage.jsp;jsessionid=320sljsdofou
27: * becomes this in the jamon label: /myapp/mypage.jsp
28: *
29: * getIgnoreHttpParams() - return if this is enabled or disabled (true means the params will be removed/ignored. This is the default behaviour)
30: * setIgnoreHttpParams(boolean httpIgnoreParams) - set whether it is enabled or disabled (true means the params will be removed/ignored. This is the default behaviour)
31: *
32: */
33: public void setIgnoreHttpParams(boolean ignoreHttpParams);
34:
35: /** Set maximum number of rows that can be in jamon before no more records are added. This will prevent jamon from growing unbounded */
36: public void setSize(int size);
37:
38: public int getSize();
39:
40: /** enable/disable monitoring. Would be better to name them enable and isEnabled, but as far as I could tell tomcat can only initialize
41: * getter and setter methods.*/
42: public void setEnabled(boolean enable);
43:
44: public boolean getEnabled();
45:
46: }
|