|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jasper.JasperEngineContext
Alternative implementation of JspCompilationContext ( in addition to the servlet and standalone ). Used by JspInterceptor - but it's in no way specific to tomcat.
| Constructor Summary | |
JasperEngineContext()
|
|
| 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. |
javax.servlet.ServletContext |
getServletContext()
Get the ServletContext for the JSP we're processing now. |
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 |
setClassLoader(java.lang.ClassLoader cl)
|
void |
setClassPath(java.lang.String s)
|
void |
setContentType(java.lang.String contentType)
|
void |
setErrorPage(boolean isErrPage)
|
void |
setJspFile(java.lang.String s)
|
void |
setOptions(Options options)
|
void |
setOutputDir(java.lang.String s)
|
void |
setReader(JspReader reader)
|
void |
setServletClassName(java.lang.String s)
|
void |
setServletContext(java.lang.Object o)
|
void |
setServletJavaFileName(java.lang.String servletJavaFileName)
|
void |
setServletPackageName(java.lang.String servletPackageName)
|
void |
setWriter(ServletWriter writer)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JasperEngineContext()
| Method Detail |
public void setClassPath(java.lang.String s)
public java.lang.String getClassPath()
getClassPath in interface JspCompilationContextpublic JspReader getReader()
getReader in interface JspCompilationContextpublic ServletWriter getWriter()
getWriter in interface JspCompilationContextpublic void setServletContext(java.lang.Object o)
public javax.servlet.ServletContext getServletContext()
public java.lang.ClassLoader getClassLoader()
getClassLoader in interface JspCompilationContextpublic void setClassLoader(java.lang.ClassLoader cl)
public void addJar(java.lang.String jar)
throws java.io.IOException
JspCompilationContext
addJar in interface JspCompilationContextjava.io.IOExceptionpublic boolean isErrorPage()
isErrorPage in interface JspCompilationContextpublic java.lang.String getOutputDir()
getOutputDir in interface JspCompilationContextpublic void setOutputDir(java.lang.String s)
public java.lang.String getJspFile()
getJspFile in interface JspCompilationContextpublic void setJspFile(java.lang.String s)
public java.lang.String getServletClassName()
getServletClassName in interface JspCompilationContextpublic void setServletClassName(java.lang.String s)
setServletClassName in interface JspCompilationContextpublic java.lang.String getServletPackageName()
getServletPackageName in interface JspCompilationContextpublic final java.lang.String getFullClassName()
getFullClassName in interface JspCompilationContextpublic java.lang.String getServletJavaFileName()
getServletJavaFileName in interface JspCompilationContextpublic boolean keepGenerated()
keepGenerated in interface JspCompilationContextpublic java.lang.String getContentType()
getContentType in interface JspCompilationContextpublic Options getOptions()
getOptions in interface JspCompilationContextpublic void setOptions(Options options)
public void setContentType(java.lang.String contentType)
setContentType in interface JspCompilationContextpublic void setReader(JspReader reader)
setReader in interface JspCompilationContextpublic void setWriter(ServletWriter writer)
setWriter in interface JspCompilationContextpublic void setServletPackageName(java.lang.String servletPackageName)
setServletPackageName in interface JspCompilationContextpublic void setServletJavaFileName(java.lang.String servletJavaFileName)
setServletJavaFileName in interface JspCompilationContextpublic void setErrorPage(boolean isErrPage)
setErrorPage in interface JspCompilationContext
public Compiler createCompiler()
throws JasperException
JspCompilationContext
createCompiler in interface JspCompilationContextJasperExceptionpublic java.lang.String resolveRelativeUri(java.lang.String uri)
JspCompilationContext
resolveRelativeUri in interface JspCompilationContextpublic java.io.InputStream getResourceAsStream(java.lang.String res)
JspCompilationContext
getResourceAsStream in interface JspCompilationContextpublic java.lang.String getRealPath(java.lang.String path)
getRealPath in interface JspCompilationContext
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||