|
JSPTemplates | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
void |
addJar(java.lang.String jar)
Add a jar to the classpath used by the loader |
Compiler |
createCompiler()
Create a "Compiler" object based on some init param data. |
java.lang.ClassLoader |
getClassLoader()
What class loader to use for loading classes while compiling this JSP? I don't think this is used right now -- akv. |
java.lang.String |
getClassPath()
The classpath that is passed off to the Java compiler. |
java.lang.String |
getContentType()
What's the content type of this JSP? Content type includes content type and encoding. |
java.lang.String |
getFullClassName()
Utility method to get the full class name from the package and class name. |
java.lang.String |
getJspFile()
Path of the JSP URI. |
Options |
getOptions()
Get hold of the Options object for this context. |
java.lang.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. |
JspReader |
getReader()
Get the input reader for the JSP text. |
java.lang.String |
getRealPath(java.lang.String path)
Gets the actual path of a URI relative to the context of the compilation. |
java.io.InputStream |
getResourceAsStream(java.lang.String res)
Gets a resource as a stream, relative to the meanings of this context's implementation. |
java.lang.String |
getServletClassName()
Just the class name (does not include package name) of the generated class. |
java.lang.String |
getServletJavaFileName()
Full path name of the Java file into which the servlet is being generated. |
java.lang.String |
getServletPackageName()
The package name into which the servlet class is generated. |
ServletWriter |
getWriter()
Where is the servlet being generated? |
boolean |
isErrorPage()
Are we processing something that has been declared as an errorpage? |
boolean |
keepGenerated()
Are we keeping generated code around? |
java.lang.String |
resolveRelativeUri(java.lang.String uri)
Get the full value of a URI relative to this compilations context |
void |
setContentType(java.lang.String contentType)
|
void |
setErrorPage(boolean isErrPage)
|
void |
setReader(JspReader reader)
|
void |
setServletClassName(java.lang.String servletClassName)
|
void |
setServletJavaFileName(java.lang.String servletJavaFileName)
|
void |
setServletPackageName(java.lang.String servletPackageName)
|
void |
setWriter(ServletWriter writer)
|
Method Detail |
public java.lang.String getClassPath()
public JspReader getReader()
public ServletWriter getWriter()
public java.lang.ClassLoader getClassLoader()
public void addJar(java.lang.String jar) throws java.io.IOException
public boolean isErrorPage()
public java.lang.String getOutputDir()
public java.lang.String getJspFile()
public java.lang.String getServletClassName()
public java.lang.String getServletPackageName()
public java.lang.String getFullClassName()
public java.lang.String getServletJavaFileName()
public boolean keepGenerated()
public java.lang.String getContentType()
public Options getOptions()
public void setContentType(java.lang.String contentType)
public void setReader(JspReader reader)
public void setWriter(ServletWriter writer)
public void setServletClassName(java.lang.String servletClassName)
public void setServletPackageName(java.lang.String servletPackageName)
public void setServletJavaFileName(java.lang.String servletJavaFileName)
public void setErrorPage(boolean isErrPage)
public Compiler createCompiler() throws JasperException
public java.lang.String resolveRelativeUri(java.lang.String uri)
public java.io.InputStream getResourceAsStream(java.lang.String res)
public java.lang.String getRealPath(java.lang.String path)
|
JSPTemplates | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |