|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jasper.servlet.JspServletWrapper
public class JspServletWrapper
The JSP engine (a.k.a Jasper). The servlet container is responsible for providing a URLClassLoader for the web application context Jasper is being used in. Jasper will try get the Tomcat ServletContext attribute for its ServletContext class loader, if that fails, it uses the parent class loader. In either case, it must be a URLClassLoader.
Constructor Summary | |
---|---|
JspServletWrapper(javax.servlet.ServletConfig config,
Options options,
java.lang.String jspUri,
boolean isErrorPage,
JspRuntimeContext rctxt)
|
|
JspServletWrapper(javax.servlet.ServletContext servletContext,
Options options,
java.lang.String tagFilePath,
javax.servlet.jsp.tagext.TagInfo tagInfo,
JspRuntimeContext rctxt,
java.net.URL tagFileJarUrl)
|
Method Summary | |
---|---|
int |
decTripCount()
|
void |
destroy()
|
java.util.List |
getDependants()
Get a list of files that the current page has source dependency on. |
JspCompilationContext |
getJspEngineContext()
|
long |
getLastModificationTest()
|
javax.servlet.Servlet |
getServlet()
|
javax.servlet.ServletContext |
getServletContext()
|
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(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JspServletWrapper(javax.servlet.ServletConfig config, Options options, java.lang.String jspUri, boolean isErrorPage, JspRuntimeContext rctxt) throws JasperException
JasperException
public JspServletWrapper(javax.servlet.ServletContext servletContext, Options options, java.lang.String tagFilePath, javax.servlet.jsp.tagext.TagInfo tagInfo, JspRuntimeContext rctxt, java.net.URL tagFileJarUrl) throws JasperException
JasperException
Method Detail |
---|
public JspCompilationContext getJspEngineContext()
public void setReload(boolean reload)
public javax.servlet.Servlet getServlet() throws javax.servlet.ServletException, java.io.IOException, java.io.FileNotFoundException
javax.servlet.ServletException
java.io.IOException
java.io.FileNotFoundException
public javax.servlet.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.List getDependants()
public boolean isTagFile()
public int incTripCount()
public int decTripCount()
public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean precompile) throws javax.servlet.ServletException, java.io.IOException, java.io.FileNotFoundException
javax.servlet.ServletException
java.io.IOException
java.io.FileNotFoundException
public void destroy()
public long getLastModificationTest()
public void setLastModificationTest(long lastModificationTest)
lastModificationTest
- The lastModificationTest to set.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 http://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.
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |