public class JspServletWrapper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private long |
available |
private JasperException |
compileException |
private javax.servlet.ServletConfig |
config |
private JspCompilationContext |
ctxt |
private boolean |
firstTime |
private boolean |
isTagFile |
private java.io.File |
jspFile |
private JspProbeEmitter |
jspProbeEmitter |
private java.lang.String |
jspUri |
private long |
lastModificationTest |
private static java.util.logging.Logger |
log |
private Options |
options |
private boolean |
reload |
private java.lang.Class |
servletClass |
private long |
servletClassLastModifiedTime |
private java.lang.Class |
tagHandlerClass |
private javax.servlet.Servlet |
theServlet |
private int |
tripCount |
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
int |
decTripCount() |
void |
destroy() |
java.util.List<java.lang.String> |
getDependants()
Get a list of files that the current page has source dependency on.
|
JspCompilationContext |
getJspEngineContext() |
java.io.File |
getJspFile() |
long |
getLastModificationTest() |
javax.servlet.Servlet |
getServlet() |
long |
getServletClassLastModifiedTime()
Gets the last-modified time of the servlet class file associated with
this JspServletWrapper.
|
javax.servlet.ServletContext |
getServletContext() |
int |
incTripCount() |
boolean |
isTagFile() |
private void |
jspFileNotFound(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
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.
|
private static java.util.logging.Logger log
private javax.servlet.Servlet theServlet
private java.lang.String jspUri
private java.lang.Class servletClass
private java.lang.Class tagHandlerClass
private JspCompilationContext ctxt
private long available
private javax.servlet.ServletConfig config
private Options options
private boolean firstTime
private boolean reload
private boolean isTagFile
private int tripCount
private JasperException compileException
private JspProbeEmitter jspProbeEmitter
private long servletClassLastModifiedTime
private java.io.File jspFile
private long lastModificationTest
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
public JspCompilationContext getJspEngineContext()
public void setReload(boolean reload)
public javax.servlet.Servlet getServlet() throws javax.servlet.ServletException, java.io.IOException, java.lang.ClassNotFoundException
javax.servlet.ServletException
java.io.IOException
java.lang.ClassNotFoundException
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 long getServletClassLastModifiedTime()
public java.lang.Class loadTagFile() throws JasperException
JasperException
public java.lang.Class loadTagFilePrototype() throws JasperException
JasperException
public java.util.List<java.lang.String> 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
javax.servlet.ServletException
java.io.IOException
public void destroy()
public long getLastModificationTest()
public void setLastModificationTest(long lastModificationTest)
lastModificationTest
- The lastModificationTest to set.public java.io.File getJspFile()
private void jspFileNotFound(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException