Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » jasper » [javadoc | source]
org.apache.jasper
public class: JspEngineContext [javadoc | source]
java.lang.Object
   org.apache.jasper.JspEngineContext
A place holder for various things that are used through out the JSP engine. This is a per-request/per-context data structure. Some of the instance variables are set at different points. JspLoader creates this object and passes this off to the "compiler" subsystem, which then initializes the rest of the variables.
Field Summary
 JspReader reader     
 ServletWriter writer     
 ServletContext context     
 JspLoader loader     
 String classpath     
 boolean isErrPage     
 String jspFile     
 String servletClassName     
 String servletPackageName     
 String servletJavaFileName     
 String contentType     
 Options options     
 HttpServletRequest req     
 HttpServletResponse res     
Constructor:
 public JspEngineContext(JspLoader loader,
    String classpath,
    ServletContext context,
    String jspFile,
    boolean isErrPage,
    Options options,
    HttpServletRequest req,
    HttpServletResponse res) 
Method from org.apache.jasper.JspEngineContext Summary:
createCompiler,   getClassLoader,   getClassPath,   getContentType,   getFullClassName,   getJspFile,   getOptions,   getOutputDir,   getReader,   getRequest,   getResponse,   getServletClassName,   getServletContext,   getServletJavaFileName,   getServletPackageName,   getWriter,   isErrorPage,   keepGenerated,   setContentType,   setErrorPage,   setReader,   setServletClassName,   setServletJavaFileName,   setServletPackageName,   setWriter
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jasper.JspEngineContext Detail:
 public Compiler createCompiler() throws JasperException 
    Create a "Compiler" object based on some init param data. This is not done yet. Right now we're just hardcoding the actual compilers that are created.
 public JspLoader getClassLoader() 
    What class loader to use for loading classes while compiling this JSP? I don't think this is used right now -- akv.
 public String getClassPath() 
    The classpath that is passed off to the Java compiler.
 public String getContentType() 
    What's the content type of this JSP? Content type includes content type and encoding.
 public final String getFullClassName() 
    Utility method to get the full class name from the package and class name.
 public String getJspFile() 
    Path of the JSP URI. Note that this is not a file name. This is the context rooted URI of the JSP file.
 public Options getOptions() 
    Get hold of the Options object for this context.
 public String getOutputDir() 
    What is the scratch directory we are generating code into? FIXME: In some places this is called scratchDir and in some other places it is called outputDir.
 public JspReader getReader() 
    Get the input reader for the JSP text.
 public HttpServletRequest getRequest() 
    Get the http request we are servicing now...
 public HttpServletResponse getResponse() 
    Get the http response we are using now...
 public String getServletClassName() 
    Just the class name (does not include package name) of the generated class.
 public ServletContext getServletContext() 
    Get the ServletContext for the JSP we're processing now.
 public String getServletJavaFileName() 
    Full path name of the Java file into which the servlet is being generated.
 public String getServletPackageName() 
    The package name into which the servlet class is generated.
 public ServletWriter getWriter() 
    Where is the servlet being generated?
 public boolean isErrorPage() 
    Are we processing something that has been declared as an errorpage?
 public boolean keepGenerated() 
    Are we keeping generated code around?
 public  void setContentType(String contentType) 
 public  void setErrorPage(boolean isErrPage) 
 public  void setReader(JspReader reader) 
 public  void setServletClassName(String servletClassName) 
 public  void setServletJavaFileName(String servletJavaFileName) 
 public  void setServletPackageName(String servletPackageName) 
 public  void setWriter(ServletWriter writer)