JspEngineContext (Jasper Internal API Documentation)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Nested Class Summary |
Nested classes inherited from class org.apache.jasper.JspCompilationContext |
JspCompilationContext.Interface1 |
Constructor Summary | |
JspEngineContext(java.net.URLClassLoader loader,
java.lang.String classpath,
javax.servlet.ServletContext context,
java.lang.String jspFile,
java.lang.String outDir,
boolean isErrPage,
Options options,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
Method Summary | |
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. |
java.lang.String |
getClassPath()
The classpath that is passed off to the Java compiler. |
java.lang.String |
getContentType()
Get the content type of this JSP. |
java.lang.String |
getJavacOutputDir()
Get the scratch directory to place generated code for javac. |
java.lang.String |
getJspFile()
Path of the JSP URI. |
Options |
getOptions()
Get hold of the Options object for this context. |
java.lang.String |
getOutputDir()
Get the scratch directory to place generated code. |
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. |
javax.servlet.http.HttpServletRequest |
getRequest()
Get the http request we are servicing now... |
java.net.URL |
getResource(java.lang.String res)
|
java.io.InputStream |
getResourceAsStream(java.lang.String res)
Gets a resource as a stream, relative to the meanings of this context's implementation. |
javax.servlet.http.HttpServletResponse |
getResponse()
Get the http response we are using now... |
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()
Package name for the generated class. |
java.lang.String[] |
getTldLocation(java.lang.String uri)
Get the 'location' of the TLD associated with a given taglib 'uri'. |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JspEngineContext(java.net.URLClassLoader loader, java.lang.String classpath, javax.servlet.ServletContext context, java.lang.String jspFile, java.lang.String outDir, boolean isErrPage, Options options, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
Method Detail |
public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
public java.lang.String getClassPath()
getClassPath
in interface JspCompilationContext
public JspReader getReader()
getReader
in interface JspCompilationContext
public ServletWriter getWriter()
getWriter
in interface JspCompilationContext
public javax.servlet.ServletContext getServletContext()
public java.lang.ClassLoader getClassLoader()
getClassLoader
in interface JspCompilationContext
public boolean isErrorPage()
isErrorPage
in interface JspCompilationContext
public java.lang.String getOutputDir()
getOutputDir
in interface JspCompilationContext
public java.lang.String getJavacOutputDir()
getJavacOutputDir
in interface JspCompilationContext
public java.lang.String getJspFile()
getJspFile
in interface JspCompilationContext
public java.lang.String getServletClassName()
getServletClassName
in interface JspCompilationContext
public java.lang.String getServletPackageName()
getServletPackageName
in interface JspCompilationContext
public java.lang.String getServletJavaFileName()
getServletJavaFileName
in interface JspCompilationContext
public boolean keepGenerated()
keepGenerated
in interface JspCompilationContext
public java.lang.String getContentType()
getContentType
in interface JspCompilationContext
public Options getOptions()
getOptions
in interface JspCompilationContext
public void setContentType(java.lang.String contentType)
setContentType
in interface JspCompilationContext
public void setReader(JspReader reader)
setReader
in interface JspCompilationContext
public void setWriter(ServletWriter writer)
setWriter
in interface JspCompilationContext
public void setServletClassName(java.lang.String servletClassName)
setServletClassName
in interface JspCompilationContext
public void setServletPackageName(java.lang.String servletPackageName)
setServletPackageName
in interface JspCompilationContext
public void setServletJavaFileName(java.lang.String servletJavaFileName)
setServletJavaFileName
in interface JspCompilationContext
public void setErrorPage(boolean isErrPage)
setErrorPage
in interface JspCompilationContext
public Compiler createCompiler() throws JasperException
createCompiler
in interface JspCompilationContext
JasperException
public java.lang.String resolveRelativeUri(java.lang.String uri)
resolveRelativeUri
in interface JspCompilationContext
public java.io.InputStream getResourceAsStream(java.lang.String res)
getResourceAsStream
in interface JspCompilationContext
public java.net.URL getResource(java.lang.String res) throws java.net.MalformedURLException
getResource
in interface JspCompilationContext
java.net.MalformedURLException
public java.lang.String getRealPath(java.lang.String path)
getRealPath
in interface JspCompilationContext
public java.lang.String[] getTldLocation(java.lang.String uri) throws JasperException
JspCompilationContext
getTldLocation
in interface JspCompilationContext
JasperException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |