| Method from org.apache.jasper.JspEngineContext Detail: |
public Compiler createCompiler() throws JasperException {
Compiler jspCompiler = new JspCompiler(this);
jspCompiler.setJavaCompiler(new SunJavaCompiler());
return jspCompiler;
}
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() {
return loader;
}
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() {
return loader.getClassPath() + classpath;
}
The classpath that is passed off to the Java compiler. |
public String getContentType() {
return contentType;
}
What's the content type of this JSP? Content type includes
content type and encoding. |
public final String getFullClassName() {
if (servletPackageName == null)
return servletClassName;
return servletPackageName + "." + servletClassName;
}
Utility method to get the full class name from the package and
class name. |
public String getJspFile() {
return jspFile;
}
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() {
return options;
}
Get hold of the Options object for this context. |
public String getOutputDir() {
return options.scratchDir().toString();
}
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() {
return reader;
}
Get the input reader for the JSP text. |
public HttpServletRequest getRequest() {
return req;
}
Get the http request we are servicing now... |
public HttpServletResponse getResponse() {
return res;
}
Get the http response we are using now... |
public String getServletClassName() {
return servletClassName;
}
Just the class name (does not include package name) of the
generated class. |
public ServletContext getServletContext() {
return context;
}
Get the ServletContext for the JSP we're processing now. |
public String getServletJavaFileName() {
return servletJavaFileName;
}
Full path name of the Java file into which the servlet is being
generated. |
public String getServletPackageName() {
return servletPackageName;
}
The package name into which the servlet class is generated. |
public ServletWriter getWriter() {
return writer;
}
Where is the servlet being generated? |
public boolean isErrorPage() {
return isErrPage;
}
Are we processing something that has been declared as an
errorpage? |
public boolean keepGenerated() {
return options.keepGenerated();
}
Are we keeping generated code around? |
public void setContentType(String contentType) {
this.contentType = contentType;
}
|
public void setErrorPage(boolean isErrPage) {
this.isErrPage = isErrPage;
}
|
public void setReader(JspReader reader) {
this.reader = reader;
}
|
public void setServletClassName(String servletClassName) {
this.servletClassName = servletClassName;
}
|
public void setServletJavaFileName(String servletJavaFileName) {
this.servletJavaFileName = servletJavaFileName;
}
|
public void setServletPackageName(String servletPackageName) {
this.servletPackageName = servletPackageName;
}
|
public void setWriter(ServletWriter writer) {
this.writer = writer;
}
|