Class JspServletWrapper


  • public class JspServletWrapper
    extends Object
    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.
    Author:
    Anil K. Vijendran, Harish Prabandham, Remy Maucherat, Kin-man Chung, Glenn Nielsen
    • Method Detail

      • setReload

        public void setReload​(boolean reload)
      • getServletContext

        public javax.servlet.ServletContext getServletContext()
      • setCompilationException

        public void setCompilationException​(JasperException je)
        Sets the compilation exception for this JspServletWrapper.
        Parameters:
        je - The compilation exception
      • setServletClassLastModifiedTime

        public void setServletClassLastModifiedTime​(long lastModified)
        Sets the last-modified time of the servlet class file associated with this JspServletWrapper.
        Parameters:
        lastModified - Last-modified time of servlet class
      • getServletClassLastModifiedTime

        public long getServletClassLastModifiedTime()
        Gets the last-modified time of the servlet class file associated with this JspServletWrapper.
        Returns:
        Last-modified time of servlet class
      • loadTagFilePrototype

        public Class loadTagFilePrototype()
                                   throws JasperException
        Compile and load a prototype for the Tag file. This is needed when compiling tag files with circular dependencies. A prototpe (skeleton) with no dependencies on other other tag files is generated and compiled.
        Throws:
        JasperException
      • getDependants

        public List<String> getDependants()
        Get a list of files that the current page has source dependency on.
      • isTagFile

        public boolean isTagFile()
      • incTripCount

        public int incTripCount()
      • decTripCount

        public int decTripCount()
      • service

        public void service​(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response,
                            boolean precompile)
                     throws javax.servlet.ServletException,
                            IOException
        Throws:
        javax.servlet.ServletException
        IOException
      • destroy

        public void destroy()
      • getLastModificationTest

        public long getLastModificationTest()
        Returns:
        Returns the lastModificationTest.
      • setLastModificationTest

        public void setLastModificationTest​(long lastModificationTest)
        Parameters:
        lastModificationTest - The lastModificationTest to set.
      • getJspFile

        public File getJspFile()