public class JspServletWrapper
extends java.lang.Object
Constructor and Description |
---|
JspServletWrapper(ServletConfig config,
Options options,
java.lang.String jspUri,
JspRuntimeContext rctxt) |
JspServletWrapper(ServletContext servletContext,
Options options,
java.lang.String tagFilePath,
TagInfo tagInfo,
JspRuntimeContext rctxt,
Jar tagJar) |
Modifier and Type | Method and Description |
---|---|
int |
decTripCount() |
void |
destroy() |
java.util.Map<java.lang.String,java.lang.Long> |
getDependants()
Get a list of files that the current page has source dependency on.
|
JspCompilationContext |
getJspEngineContext() |
java.lang.String |
getJspUri() |
long |
getLastModificationTest() |
long |
getLastUsageTime() |
Servlet |
getServlet() |
ServletContext |
getServletContext() |
FastRemovalDequeue.Entry |
getUnloadHandle() |
protected JasperException |
handleJspException(java.lang.Exception ex)
Attempts to construct a JasperException that contains helpful information
about what went wrong.
|
int |
incTripCount() |
boolean |
isTagFile() |
java.lang.Class<?> |
loadTagFile()
Compile (if needed) and load a tag file
|
java.lang.Class<?> |
loadTagFilePrototype()
Compile and load a prototype for the Tag file.
|
void |
service(HttpServletRequest request,
HttpServletResponse response,
boolean precompile) |
void |
setCompilationException(JasperException je)
Sets the compilation exception for this JspServletWrapper.
|
void |
setLastModificationTest(long lastModificationTest) |
void |
setReload(boolean reload) |
void |
setServletClassLastModifiedTime(long lastModified)
Sets the last-modified time of the servlet class file associated with
this JspServletWrapper.
|
public JspServletWrapper(ServletConfig config, Options options, java.lang.String jspUri, JspRuntimeContext rctxt)
public JspServletWrapper(ServletContext servletContext, Options options, java.lang.String tagFilePath, TagInfo tagInfo, JspRuntimeContext rctxt, Jar tagJar)
public JspCompilationContext getJspEngineContext()
public void setReload(boolean reload)
public Servlet getServlet() throws ServletException
ServletException
public ServletContext getServletContext()
public void setCompilationException(JasperException je)
je
- The compilation exceptionpublic void setServletClassLastModifiedTime(long lastModified)
lastModified
- Last-modified time of servlet classpublic java.lang.Class<?> loadTagFile() throws JasperException
JasperException
public java.lang.Class<?> loadTagFilePrototype() throws JasperException
JasperException
public java.util.Map<java.lang.String,java.lang.Long> getDependants()
public boolean isTagFile()
public int incTripCount()
public int decTripCount()
public java.lang.String getJspUri()
public FastRemovalDequeue.Entry getUnloadHandle()
public void service(HttpServletRequest request, HttpServletResponse response, boolean precompile) throws ServletException, java.io.IOException, java.io.FileNotFoundException
ServletException
java.io.IOException
java.io.FileNotFoundException
public void destroy()
public long getLastModificationTest()
public void setLastModificationTest(long lastModificationTest)
lastModificationTest
- The lastModificationTest to set.public long getLastUsageTime()
protected JasperException handleJspException(java.lang.Exception ex)
Attempts to construct a JasperException that contains helpful information about what went wrong. Uses the JSP compiler system to translate the line number in the generated servlet that originated the exception to a line number in the JSP. Then constructs an exception containing that information, and a snippet of the JSP to help debugging. Please see https://bz.apache.org/bugzilla/show_bug.cgi?id=37062 and http://www.tfenne.com/jasper/ for more details.
ex
- the exception that was the cause of the problem.Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.