public final class JspRuntimeContext extends Object
Constructor and Description |
---|
JspRuntimeContext(ServletContext context,
Options options)
Create a JspRuntimeContext for a web application context.
|
Modifier and Type | Method and Description |
---|---|
void |
addWrapper(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 |
checkUnload()
Method used by background thread to check if any JSP's should be unloaded.
|
void |
destroy()
Process a "destroy" event for this web application context.
|
String |
getClassPath()
The classpath that is passed off to the Java compiler.
|
CodeSource |
getCodeSource()
Get the SecurityManager Policy CodeSource for this web
application 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 |
getJspQueueLength()
Gets the number of JSPs that are in the JSP limiter queue
|
int |
getJspReloadCount()
Gets the current value of the JSP reload counter.
|
int |
getJspUnloadCount()
Gets the number of JSPs that have been unloaded.
|
long |
getLastJspQueueUpdate()
Last time the update background task has run
|
ClassLoader |
getParentClassLoader()
Get the parent ClassLoader.
|
PermissionCollection |
getPermissionCollection()
Get the SecurityManager PermissionCollection for this
web application context.
|
JspServletWrapper |
getWrapper(String jspUri)
Get an already existing JspServletWrapper.
|
void |
incrementJspReloadCount()
Increments the JSP reload counter.
|
void |
makeYoungest(FastRemovalDequeue.Entry unloadHandle)
Push unloadHandle for JspServletWrapper to front of the queue.
|
FastRemovalDequeue.Entry |
push(JspServletWrapper jsw)
Push a newly compiled JspServletWrapper into the queue at first
execution of jsp.
|
void |
removeWrapper(String jspUri)
Remove a JspServletWrapper.
|
void |
setJspReloadCount(int count)
Resets the JSP reload counter.
|
public JspRuntimeContext(ServletContext context, Options options)
context
- ServletContext for web applicationpublic void addWrapper(String jspUri, JspServletWrapper jsw)
jspUri
- JSP URIjsw
- Servlet wrapper for JSPpublic JspServletWrapper getWrapper(String jspUri)
jspUri
- JSP URIpublic void removeWrapper(String jspUri)
jspUri
- JSP URI of JspServletWrapper to removepublic FastRemovalDequeue.Entry push(JspServletWrapper jsw)
jsw
- Servlet wrapper for jsp.public void makeYoungest(FastRemovalDequeue.Entry unloadHandle)
unloadHandle
- the unloadHandle for the jsp.public int getJspCount()
public CodeSource getCodeSource()
public ClassLoader getParentClassLoader()
public 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 int getJspQueueLength()
public int getJspUnloadCount()
public void checkCompile()
public String getClassPath()
public long getLastJspQueueUpdate()
public void checkUnload()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.