Java Doc for JspServlet.java in  » J2EE » Sofia » com » salmonllc » jsp » 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 » J2EE » Sofia » com.salmonllc.jsp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.salmonllc.jsp.JspServlet

JspServlet
abstract public class JspServlet implements Servlet,HttpJspPage(Code)
This servlet should be used as the parent of each generated JSP servlet used by the framework
by using the JSP Directive <@page extends="com.salmonllc.jsp.JspServlet">
Using the servlet will make your pages thread safe, compile response time stats on the server and make processing of salmon tags more efficient

Inner Class :public class JspServletObjectInputStream extends ObjectInputStream
Inner Class :public static class Timer

Field Summary
final public static  StringSALMON_CONTEXT_TOKEN
    
final public static  StringSALMON_CREATE_PAGE_HEADER
    
final public static  StringSALMON_SERVLET_KEY
    
public static  boolean_cacheControllers
    
public static  Hashtable_controllerCache
    
public static  int_reqCount
    
protected  ServletConfig_servletConfig
    
public static  Hashtable_timers
    


Method Summary
abstract public  void_jspService(HttpServletRequest request, HttpServletResponse response)
    
public static  voidaddPageHit(long time)
    
public static  voidaddServiceListener(ServletServiceListener l)
     Adds a new listerner to this page to handle custom page events events.
final public  voiddestroy()
    
public static  longgetAverageHitTime()
     Returns the average time per page hit in milliseconds.
public static  intgetControllerCacheBytes()
    
public static  intgetControllerCacheCount()
    
public static  longgetFirstPageHitTime()
     Returns the time that the first page was requested from the server.
public static  intgetPageHits()
     Returns the number of page hits since the server was started.
public  longgetServerStartTime()
    
public  ServletConfiggetServletConfig()
    
public  StringgetServletInfo()
    
public static  HashtablegetTimersHashtable()
    
public static  longgetTotalHitTime()
     Returns the total time per page hit in milliseconds.
final public  voidinit(ServletConfig config)
    
public static  booleanisControllerCacheActive()
    
public  voidjspDestroy()
    
public  voidjspInit()
    
public static synchronized  voidrecordTimerActivity(String name, long time, Object o, boolean writeToMessageLog)
     Adds a hit to a particular activity.
public static synchronized  voidrecordTimerActivity(String name, long time, Object o)
     Adds a hit to a particular activity.
public static synchronized  voidresetAllTimers()
    
public  voidservice(ServletRequest request, ServletResponse response)
    
public static  voidsetUpApplicationContext(ServletContext sContext, HttpServletRequest req)
    
public static  voidsetUpApplicationContext(ServletContext sContext)
    

Field Detail
SALMON_CONTEXT_TOKEN
final public static String SALMON_CONTEXT_TOKEN(Code)



SALMON_CREATE_PAGE_HEADER
final public static String SALMON_CREATE_PAGE_HEADER(Code)



SALMON_SERVLET_KEY
final public static String SALMON_SERVLET_KEY(Code)



_cacheControllers
public static boolean _cacheControllers(Code)



_controllerCache
public static Hashtable _controllerCache(Code)



_reqCount
public static int _reqCount(Code)



_servletConfig
protected ServletConfig _servletConfig(Code)



_timers
public static Hashtable _timers(Code)





Method Detail
_jspService
abstract public void _jspService(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException(Code)



addPageHit
public static void addPageHit(long time)(Code)
Adds a page hit to the hit counter



addServiceListener
public static void addServiceListener(ServletServiceListener l)(Code)
Adds a new listerner to this page to handle custom page events events.



destroy
final public void destroy()(Code)



getAverageHitTime
public static long getAverageHitTime()(Code)
Returns the average time per page hit in milliseconds.



getControllerCacheBytes
public static int getControllerCacheBytes()(Code)
Returns the number of bytes used by the controller cache



getControllerCacheCount
public static int getControllerCacheCount()(Code)
Returns the number of controllers in the cache



getFirstPageHitTime
public static long getFirstPageHitTime()(Code)
Returns the time that the first page was requested from the server.



getPageHits
public static int getPageHits()(Code)
Returns the number of page hits since the server was started.



getServerStartTime
public long getServerStartTime()(Code)
Returns the time in milliseconds since the first page hit on the server



getServletConfig
public ServletConfig getServletConfig()(Code)



getServletInfo
public String getServletInfo()(Code)



getTimersHashtable
public static Hashtable getTimersHashtable()(Code)
Returns a hash table of timers recorded in the system



getTotalHitTime
public static long getTotalHitTime()(Code)
Returns the total time per page hit in milliseconds.



init
final public void init(ServletConfig config) throws ServletException(Code)



isControllerCacheActive
public static boolean isControllerCacheActive()(Code)
Returns true if the controller cache is being used



jspDestroy
public void jspDestroy()(Code)



jspInit
public void jspInit()(Code)



recordTimerActivity
public static synchronized void recordTimerActivity(String name, long time, Object o, boolean writeToMessageLog)(Code)
Adds a hit to a particular activity. The average time for each named time can be seen in the connection monitor servlet



recordTimerActivity
public static synchronized void recordTimerActivity(String name, long time, Object o)(Code)
Adds a hit to a particular activity. The average time for each named time can be seen in the connection monitor servlet



resetAllTimers
public static synchronized void resetAllTimers()(Code)
Resets all page hit stats and timers



service
public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException(Code)



setUpApplicationContext
public static void setUpApplicationContext(ServletContext sContext, HttpServletRequest req)(Code)



setUpApplicationContext
public static void setUpApplicationContext(ServletContext sContext)(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.