Java Doc for HttpMonFactory.java in  » Profiler » JAMon » com » jamonapi » http » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Profiler » JAMon » com.jamonapi.http 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.jamonapi.http.HttpMonFactory

All known Subclasses:   com.jamonapi.http.JettyHttpMonFactory,
HttpMonFactory
public class HttpMonFactory implements HttpMonManage(Code)
Base class that monitors a httpServletRequest, and HttpServletResponse by returning an HttpMonRequest object per page request. Although this class can be used directly it will more often be used transparently by classes such as JAMonTomcat55Valve, JAMonServletFilter and JAMonJettyHandler. To get a list of many possible (though not all) HttpServletRequest and HttpServletResponse labels pass 'demo' to the valve, handler or servlet filter. You can also see these same possibiliteis by calling HttpMonFactory.getDemoLabels(). Note jetty and tomcat handler and valve respectively are based on objects that inherit from HttpServletRequest and HttpServletResponse respectively and all methods that these subclasses implement are available too.
representative values returned from response methods
response.getBufferSize()=8192
response.getCharacterEncoding()=utf-8
response.getContentCount()=985
response.getContentType()=text/html;charset=utf-8
response.getLocale()=en_US

representative values returned from request methods
request.getAuthType()=null
request.getCharacterEncoding()=null
request.getContentLength()=-1
request.getCharacterEncoding()=null
request.getContentType()=null
request.getContextPath()=/jamon
request.getLocalAddr()=127.0.0.1
request.getLocale()=en_US
request.getLocalName()=localhost
request.getLocalPort()=8080
request.getMethod()=GET
request.getPathInfo()=null
request.getPathTranslated()=null
request.getProtocol()=HTTP/1.1
request.getQueryString()=name=steve%20souza&id=9898
request.getRemoteAddr()=127.0.0.1
request.getRemoteHost()=127.0.0.1
request.getRemotePort()=1454
request.getRemoteUser()=null
request.getRequestedSessionId()=670BFE2B4A7C7C77D9825EFA753D2058
request.getRequestURI()=/jamon/ZZZZ
request.getRequestURL()=http://localhost:8080/jamon/ZZZZ
request.getScheme()=http
request.getServerName()=localhost
request.getServerPort()=8080
request.getServletPath()=/ZZZZ
request.getUserPrincipal()=null
request.isRequestedSessionIdFromCookie()=true
request.isRequestedSessionIdFromURL()=false
request.isRequestedSessionIdValid()=false
request.isSecure()=false
author:
   steve souza



Constructor Summary
public  HttpMonFactory(String labelPrefix)
     Create an HttpMonFactory by passing in text that occurs at the beginning of all jamon labels.

Method Summary
public  voidaddSummaryLabel(String jamonSummaryLabel)
     Pass a String that has an HttpServletRequest/HttpServletResponse method such as response.getStatus() and then this class will monitor that method call.
 HttpMonItemcreateHttpMonItem(String label)
    
public static  StringgetDemoLabels()
    
public  booleangetEnabled()
    
public  booleangetIgnoreHttpParams()
     Determine if http params are ignored when creating a jamon label for request.getRequestURI(), and request.getRequestURL().
public  StringgetLabelPrefix()
    
public  HttpMongetMon(Object request, Object response)
    
 intgetNumRows()
    
 intgetNumTimeMons()
    
public  intgetSize()
     Get the max number of possible HttpMonitors.
public  StringgetSummaryLabels()
     Get the passed in summaryLabels.
 Iteratoriter()
    
public static  voidmain(String[] argas)
    
static  StringreplaceDefault(String summaryLabel, String defaultString)
    
public  voidsetEnabled(boolean enable)
    
public  voidsetIgnoreHttpParams(boolean ignoreHttpParams)
     Set if http params are ignored when creating a jamon label for request.getRequestURI(), and request.getRequestURL().
public  voidsetSize(int size)
     Set the max number of possible HttpMonitors.
public  voidsetSummaryLabels(String jamonSummaryLabels)
     Pass a series of things (HttpServletRequest/HttpServletResponse methods) to monitor.
public  voidsetSummaryLabels(String summaryLabel, String defaultString)
    
public  HttpMonstart(Object request, Object response)
    


Constructor Detail
HttpMonFactory
public HttpMonFactory(String labelPrefix)(Code)
Create an HttpMonFactory by passing in text that occurs at the beginning of all jamon labels. ex com.jamonapi.http.JAMonTomcatValve




Method Detail
addSummaryLabel
public void addSummaryLabel(String jamonSummaryLabel)(Code)
Pass a String that has an HttpServletRequest/HttpServletResponse method such as response.getStatus() and then this class will monitor that method call.



createHttpMonItem
HttpMonItem createHttpMonItem(String label)(Code)



getDemoLabels
public static String getDemoLabels()(Code)



getEnabled
public boolean getEnabled()(Code)
Determin if http monitoring is enabled



getIgnoreHttpParams
public boolean getIgnoreHttpParams()(Code)
Determine if http params are ignored when creating a jamon label for request.getRequestURI(), and request.getRequestURL(). This is important for jsessionid can make every label passed to jamon nonunique if not enabled. By default this value is true (ignore params).



getLabelPrefix
public String getLabelPrefix()(Code)



getMon
public HttpMon getMon(Object request, Object response)(Code)



getNumRows
int getNumRows()(Code)



getNumTimeMons
int getNumTimeMons()(Code)



getSize
public int getSize()(Code)
Get the max number of possible HttpMonitors. By default this is 5000



getSummaryLabels
public String getSummaryLabels()(Code)
Get the passed in summaryLabels.



iter
Iterator iter()(Code)



main
public static void main(String[] argas)(Code)
Simple test code



replaceDefault
static String replaceDefault(String summaryLabel, String defaultString)(Code)



setEnabled
public void setEnabled(boolean enable)(Code)
Enable/disable http monitoring



setIgnoreHttpParams
public void setIgnoreHttpParams(boolean ignoreHttpParams)(Code)
Set if http params are ignored when creating a jamon label for request.getRequestURI(), and request.getRequestURL(). This is important for jsessionid can make every label passed to jamon nonunique if not enabled. By default this value is true (ignore params).



setSize
public void setSize(int size)(Code)
Set the max number of possible HttpMonitors. By default this is 5000. A value <=0 means there is no limit on the number of jamon records that can be creating due to monitoring.



setSummaryLabels
public void setSummaryLabels(String jamonSummaryLabels)(Code)
Pass a series of things (HttpServletRequest/HttpServletResponse methods) to monitor. If the word 'default' is passed then the default values will be used. If 'demo' is passed you will see a list of possibilities (This should not be done in production as too much data would be generated). You can add to the default by doing passing "default, request.getStatus().httpStatus". Each time this method is called any previously set items that were being monitored will not longer be monitored. See http://www.jamonapi.com for more examples.



setSummaryLabels
public void setSummaryLabels(String summaryLabel, String defaultString)(Code)



start
public HttpMon start(Object request, Object response)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.