public class HttpMonFactory extends Object implements Serializable
Representative values returned from response methods
Representative values returned from request methods
Constructor and Description |
---|
HttpMonFactory(String labelPrefix)
Create an HttpMonFactory by passing in text that occurs at the beginning of all jamon labels.
|
Modifier and Type | Method and Description |
---|---|
void |
addSummaryLabel(String jamonSummaryLabel)
Pass a String that has an HttpServletRequest/HttpServletResponse method such as response.getStatus() and then this class
will monitor that method call.
|
static String |
getDemoLabels() |
boolean |
getEnabled()
Determin if http monitoring is enabled
|
boolean |
getIgnoreHttpParams()
Determine if http params are ignored when creating a jamon label for request.getRequestURI(), and request.getRequestURL().
|
String |
getLabelPrefix() |
HttpMon |
getMon(Object request,
Object response) |
int |
getSize()
Get the max number of possible HttpMonitors.
|
String |
getSummaryLabels()
Get the passed in summaryLabels.
|
void |
setEnabled(boolean enable)
Enable/disable http monitoring
|
void |
setIgnoreHttpParams(boolean ignoreHttpParams)
Set if http params are ignored when creating a jamon label for request.getRequestURI(), and request.getRequestURL().
|
void |
setSize(int size)
Set the max number of possible HttpMonitors.
|
void |
setSummaryLabels(String jamonSummaryLabels)
Pass a series of things (HttpServletRequest/HttpServletResponse methods) to monitor.
|
void |
setSummaryLabels(String summaryLabel,
String defaultString)
if passed summaryLabel has 'default' in it replace it with defaultString and then
call this classes setSummaryLabels method.
|
HttpMon |
start(Object request,
Object response)
Method called to start monitoring a request.
|
public HttpMonFactory(String labelPrefix)
public void setSummaryLabels(String jamonSummaryLabels)
public static String getDemoLabels()
public void setSummaryLabels(String summaryLabel, String defaultString)
summaryLabel
- defaultString
- public void addSummaryLabel(String jamonSummaryLabel)
public String getSummaryLabels()
public boolean getIgnoreHttpParams()
public void setIgnoreHttpParams(boolean ignoreHttpParams)
public void setEnabled(boolean enable)
public boolean getEnabled()
public int getSize()
public void setSize(int size)
public String getLabelPrefix()
Copyright © 2015. All rights reserved.