| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.jasper.compiler.JspRuntimeContext
public final class JspRuntimeContext
Class for tracking JSP compile time file dependencies when the &060;%@include file="..."%&062; directive is used. A background thread periodically checks the files a JSP page is dependent upon. If a dpendent file changes the JSP page which included it is recompiled. Only used if a web application context is a directory.
| Constructor Summary | |
|---|---|
| JspRuntimeContext(javax.servlet.ServletContext context,
                  Options options)Create a JspRuntimeContext for a web application context. | |
| Method Summary | |
|---|---|
|  void | addWrapper(java.lang.String jspUri,
           JspServletWrapper jsw)Add a new JspServletWrapper. | 
|  void | checkCompile()Method used by background thread to check the JSP dependencies registered with this class for JSP's. | 
|  void | destroy()Process a "destory" event for this web application context. | 
|  java.lang.String | getClassPath()The classpath that is passed off to the Java compiler. | 
|  java.security.CodeSource | getCodeSource()Get the SecurityManager Policy CodeSource for this web applicaiton context. | 
|  int | getJspCount()Returns the number of JSPs for which JspServletWrappers exist, i.e., the number of JSPs that have been loaded into the webapp. | 
|  int | getJspReloadCount()Gets the current value of the JSP reload counter. | 
|  java.net.URLClassLoader | getParentClassLoader()Get the parent URLClassLoader. | 
|  java.security.PermissionCollection | getPermissionCollection()Get the SecurityManager PermissionCollection for this web application context. | 
|  JspServletWrapper | getWrapper(java.lang.String jspUri)Get an already existing JspServletWrapper. | 
|  void | incrementJspReloadCount()Increments the JSP reload counter. | 
|  void | removeWrapper(java.lang.String jspUri)Remove a JspServletWrapper. | 
|  void | setJspReloadCount(int count)Resets the JSP reload counter. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public JspRuntimeContext(javax.servlet.ServletContext context,
                         Options options)
context - ServletContext for web application| Method Detail | 
|---|
public void addWrapper(java.lang.String jspUri,
                       JspServletWrapper jsw)
jspUri - JSP URIjsw - Servlet wrapper for JSPpublic JspServletWrapper getWrapper(java.lang.String jspUri)
jspUri - JSP URI
public void removeWrapper(java.lang.String jspUri)
jspUri - JSP URI of JspServletWrapper to removepublic int getJspCount()
public java.security.CodeSource getCodeSource()
public java.net.URLClassLoader getParentClassLoader()
public java.security.PermissionCollection getPermissionCollection()
public void destroy()
public void incrementJspReloadCount()
public void setJspReloadCount(int count)
count - Value to which to reset the JSP reload counterpublic int getJspReloadCount()
public void checkCompile()
public java.lang.String getClassPath()
| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||