public class JspServletWrapper extends Object
Constructor and Description |
---|
JspServletWrapper(javax.servlet.ServletConfig config,
Options options,
String jspUri,
JspRuntimeContext rctxt) |
JspServletWrapper(javax.servlet.ServletContext servletContext,
Options options,
String tagFilePath,
javax.servlet.jsp.tagext.TagInfo tagInfo,
JspRuntimeContext rctxt,
Jar tagJar) |
Modifier and Type | Method and Description |
---|---|
int |
decTripCount() |
void |
destroy() |
Map<String,Long> |
getDependants()
Get a list of files that the current page has source dependency on.
|
JspCompilationContext |
getJspEngineContext() |
String |
getJspUri() |
long |
getLastModificationTest() |
long |
getLastUsageTime() |
javax.servlet.Servlet |
getServlet() |
javax.servlet.ServletContext |
getServletContext() |
FastRemovalDequeue.Entry |
getUnloadHandle() |
protected JasperException |
handleJspException(Exception ex)
Attempts to construct a JasperException that contains helpful information
about what went wrong.
|
int |
incTripCount() |
boolean |
isTagFile() |
void |
jspFileChanged() |
Class<?> |
loadTagFile()
Compile (if needed) and load a tag file
|
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.
|
public JspServletWrapper(javax.servlet.ServletConfig config, Options options, String jspUri, JspRuntimeContext rctxt)
public JspServletWrapper(javax.servlet.ServletContext servletContext, Options options, String tagFilePath, javax.servlet.jsp.tagext.TagInfo tagInfo, JspRuntimeContext rctxt, Jar tagJar)
public JspCompilationContext getJspEngineContext()
public void setReload(boolean reload)
public javax.servlet.Servlet getServlet() throws javax.servlet.ServletException
javax.servlet.ServletException
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 Class<?> loadTagFile() throws JasperException
JasperException
public Class<?> loadTagFilePrototype() throws JasperException
JasperException
public Map<String,Long> getDependants()
public boolean isTagFile()
public int incTripCount()
public int decTripCount()
public String getJspUri()
public FastRemovalDequeue.Entry getUnloadHandle()
public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean precompile) throws javax.servlet.ServletException, IOException, FileNotFoundException
javax.servlet.ServletException
IOException
FileNotFoundException
public void destroy()
public long getLastModificationTest()
public void setLastModificationTest(long lastModificationTest)
lastModificationTest
- The lastModificationTest to set.public long getLastUsageTime()
protected JasperException handleJspException(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.public void jspFileChanged()
Copyright © 2016 JBoss by Red Hat. All rights reserved.