public class JspCompilationContext extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
basePackageName |
protected String |
baseURI |
protected URL |
baseUrl |
protected String |
classFileName |
protected String |
className |
protected String |
classPath |
protected String |
contentType |
protected javax.servlet.ServletContext |
context |
protected String |
derivedPackageName |
protected boolean |
isErrPage |
protected boolean |
isPackagedTagFile |
protected boolean |
isTagFile |
protected String |
javaPath |
protected Compiler |
jspCompiler |
protected URLClassLoader |
jspLoader |
protected String |
jspUri |
protected JspServletWrapper |
jsw |
protected ClassLoader |
loader |
protected org.apache.juli.logging.Log |
log |
protected Options |
options |
protected String |
outputDir |
protected boolean |
protoTypeMode |
protected JspRuntimeContext |
rctxt |
protected int |
removed |
protected Class |
servletClass |
protected String |
servletJavaFileName |
protected URL |
tagFileJarUrl |
protected Map<String,URL> |
tagFileJarUrls |
protected javax.servlet.jsp.tagext.TagInfo |
tagInfo |
protected ServletWriter |
writer |
Constructor and Description |
---|
JspCompilationContext(String jspUri,
boolean isErrPage,
Options options,
javax.servlet.ServletContext context,
JspServletWrapper jsw,
JspRuntimeContext rctxt,
ClassLoaderInterface classLoaderInterface) |
JspCompilationContext(String tagfile,
javax.servlet.jsp.tagext.TagInfo tagInfo,
Options options,
javax.servlet.ServletContext context,
JspServletWrapper jsw,
JspRuntimeContext rctxt,
URL tagFileJarUrl) |
protected org.apache.juli.logging.Log log
protected boolean isPackagedTagFile
protected String className
protected String jspUri
protected boolean isErrPage
protected String basePackageName
protected String derivedPackageName
protected String servletJavaFileName
protected String javaPath
protected String classFileName
protected String contentType
protected ServletWriter writer
protected Options options
protected JspServletWrapper jsw
protected Compiler jspCompiler
protected String classPath
protected String baseURI
protected String outputDir
protected javax.servlet.ServletContext context
protected ClassLoader loader
protected JspRuntimeContext rctxt
protected int removed
protected URLClassLoader jspLoader
protected URL baseUrl
protected Class servletClass
protected boolean isTagFile
protected boolean protoTypeMode
protected javax.servlet.jsp.tagext.TagInfo tagInfo
protected URL tagFileJarUrl
public JspCompilationContext(String jspUri, boolean isErrPage, Options options, javax.servlet.ServletContext context, JspServletWrapper jsw, JspRuntimeContext rctxt, ClassLoaderInterface classLoaderInterface)
public JspCompilationContext(String tagfile, javax.servlet.jsp.tagext.TagInfo tagInfo, Options options, javax.servlet.ServletContext context, JspServletWrapper jsw, JspRuntimeContext rctxt, URL tagFileJarUrl)
public String getClassPath()
public void setClassPath(String classPath)
classPath
- The classpath that is passed off to the Java compiler.public ClassLoader getClassLoader()
public void setClassLoader(ClassLoader loader)
public ClassLoader getJspLoader()
public String getOutputDir()
public Compiler createCompiler() throws JasperException
JasperException
- in case of Jasper errorspublic Compiler getCompiler()
public String resolveRelativeUri(String uri)
uri
- the URLpublic InputStream getResourceAsStream(String res)
res
- resourcepublic URL getResource(String res) throws MalformedURLException
MalformedURLException
public String getRealPath(String path)
path
- the pathpublic URL getTagFileJarUrl(String tagFile)
tagFile
- The map is populated when parsing the tag-file elements of the TLDs
of any imported taglibs.public URL getTagFileJarUrl()
public String getServletClassName()
public void setServletClassName(String className)
public String getJspFile()
public boolean isErrorPage()
public void setErrorPage(boolean isErrPage)
public boolean isTagFile()
public javax.servlet.jsp.tagext.TagInfo getTagInfo()
public void setTagInfo(javax.servlet.jsp.tagext.TagInfo tagi)
public boolean isPrototypeMode()
public void setPrototypeMode(boolean pm)
public String getServletPackageName()
protected String getDerivedPackageName()
public void setServletPackageName(String servletPackageName)
servletPackageName
- The package name into which the servlet class is generated.public String getServletJavaFileName()
public Options getOptions()
public javax.servlet.ServletContext getServletContext()
public JspRuntimeContext getRuntimeContext()
public String getJavaPath()
public String getClassFileName()
public String getContentType()
public void setContentType(String contentType)
public ServletWriter getWriter()
public void setWriter(ServletWriter writer)
public String[] getTldLocation(String uri) throws JasperException
uri
- the URLJasperException
- in case of Jasper errorspublic boolean keepGenerated()
public void incrementRemoved()
public boolean isRemoved()
public void compile() throws JasperException, FileNotFoundException
JasperException
FileNotFoundException
public Class load() throws JasperException, FileNotFoundException
JasperException
FileNotFoundException
public void checkOutputDir()
protected boolean makeOutputDir()
protected void createOutputDir()
protected static final boolean isPathSeparator(char c)
public String getSourceCode()
public void setSourceCode(String sourceCode)
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.