Java Doc for JspCompilationContext.java in  » Web-Server » Acme-WebServer » org » apache » jasper » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Server » Acme WebServer » org.apache.jasper 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.jasper.JspCompilationContext

JspCompilationContext
public class JspCompilationContext (Code)
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. Most of the path-related stuff is here - mangling names, versions, dirs, loading resources and dealing with uris.
author:
   Anil K. Vijendran
author:
   Harish Prabandham
author:
   Pierre Delisle
author:
   Costin Manolache
author:
   Kin-man Chung


Field Summary
protected  StringbasePackageName
    
protected  StringbaseURI
    
protected  URLbaseUrl
    
protected  StringclassFileName
    
protected  StringclassName
    
protected  StringclassPath
    
protected  StringcontentType
    
protected  ServletContextcontext
    
protected  StringderivedPackageName
    
protected  booleanisErrPage
    
protected  booleanisPackagedTagFile
    
protected  booleanisTagFile
    
protected  StringjavaPath
    
protected  CompilerjspCompiler
    
protected  URLClassLoaderjspLoader
    
protected  StringjspUri
    
protected  JspServletWrapperjsw
    
protected  URLClassLoaderloader
    
protected  org.apache.juli.logging.Loglog
    
protected  Optionsoptions
    
protected  StringoutputDir
    
static  ObjectoutputDirLock
    
protected  booleanprotoTypeMode
    
protected  JspRuntimeContextrctxt
    
protected  intremoved
    
protected  ClassservletClass
    
protected  StringservletJavaFileName
    
protected  URLtagFileJarUrl
    
protected  Map<String, URL>tagFileJarUrls
    
protected  TagInfotagInfo
    
protected  ServletWriterwriter
    

Constructor Summary
public  JspCompilationContext(String jspUri, boolean isErrPage, Options options, ServletContext context, JspServletWrapper jsw, JspRuntimeContext rctxt)
    
public  JspCompilationContext(String tagfile, TagInfo tagInfo, Options options, ServletContext context, JspServletWrapper jsw, JspRuntimeContext rctxt, URL tagFileJarUrl)
    

Method Summary
final protected static  StringcanonicalURI(String s)
    
public  voidcheckOutputDir()
    
public  voidcompile()
    
public  CompilercreateCompiler()
     Create a "Compiler" object based on some init param data.
protected  CompilercreateCompiler(String className)
    
protected  voidcreateOutputDir()
    
public  StringgetClassFileName()
    
public  ClassLoadergetClassLoader()
    
public  StringgetClassPath()
     The classpath that is passed off to the Java compiler.
public  CompilergetCompiler()
    
public  StringgetContentType()
     Get the content type of this JSP.
protected  StringgetDerivedPackageName()
    
public  StringgetJavaPath()
     Path of the Java file relative to the work directory.
public  StringgetJspFile()
     Path of the JSP URI.
public  ClassLoadergetJspLoader()
    
public  OptionsgetOptions()
     Get hold of the Options object for this context.
public  StringgetOutputDir()
     The output directory to generate code into.
public  StringgetRealPath(String path)
     Gets the actual path of a URI relative to the context of the compilation.
public  URLgetResource(String res)
    
public  java.io.InputStreamgetResourceAsStream(String res)
     Gets a resource as a stream, relative to the meanings of this context's implementation.
public  SetgetResourcePaths(String path)
    
public  JspRuntimeContextgetRuntimeContext()
    
public  StringgetServletClassName()
     Just the class name (does not include package name) of the generated class.
public  ServletContextgetServletContext()
    
public  StringgetServletJavaFileName()
     Full path name of the Java file into which the servlet is being generated.
public  StringgetServletPackageName()
     Package name for the generated class is make up of the base package name, which is user settable, and the derived package name.
public  URLgetTagFileJarUrl(String tagFile)
     Returns the tag-file-name-to-JAR-file map of this compilation unit, which maps tag file names to the JAR files in which the tag files are packaged. The map is populated when parsing the tag-file elements of the TLDs of any imported taglibs.
public  URLgetTagFileJarUrl()
     Returns the JAR file in which the tag file for which this JspCompilationContext was created is packaged, or null if this JspCompilationContext does not correspond to a tag file, or if the corresponding tag file is not packaged in a JAR.
public  TagInfogetTagInfo()
    
public  String[]getTldLocation(String uri)
     Gets the 'location' of the TLD associated with the given taglib 'uri'. An array of two Strings: The first element denotes the realpath to the TLD.
public  ServletWritergetWriter()
    
public  voidincrementRemoved()
    
public  booleanisErrorPage()
    
final protected static  booleanisPathSeparator(char c)
    
public  booleanisPrototypeMode()
     True if we are compiling a tag file in prototype mode.
public  booleanisRemoved()
    
public  booleanisTagFile()
    
public  booleankeepGenerated()
    
public  Classload()
    
protected  booleanmakeOutputDir()
    
public  StringresolveRelativeUri(String uri)
     Get the full value of a URI relative to this compilations context uses current file as the base.
public  voidsetClassLoader(URLClassLoader loader)
    
public  voidsetClassPath(String classPath)
     The classpath that is passed off to the Java compiler.
public  voidsetContentType(String contentType)
    
public  voidsetErrorPage(boolean isErrPage)
    
public  voidsetPrototypeMode(boolean pm)
    
public  voidsetServletClassName(String className)
    
public  voidsetServletPackageName(String servletPackageName)
     The package name into which the servlet class is generated.
public  voidsetTagFileJarUrl(String tagFile, URL tagFileURL)
    
public  voidsetTagInfo(TagInfo tagi)
    
public  voidsetWriter(ServletWriter writer)
    

Field Detail
basePackageName
protected String basePackageName(Code)



baseURI
protected String baseURI(Code)



baseUrl
protected URL baseUrl(Code)



classFileName
protected String classFileName(Code)



className
protected String className(Code)



classPath
protected String classPath(Code)



contentType
protected String contentType(Code)



context
protected ServletContext context(Code)



derivedPackageName
protected String derivedPackageName(Code)



isErrPage
protected boolean isErrPage(Code)



isPackagedTagFile
protected boolean isPackagedTagFile(Code)



isTagFile
protected boolean isTagFile(Code)



javaPath
protected String javaPath(Code)



jspCompiler
protected Compiler jspCompiler(Code)



jspLoader
protected URLClassLoader jspLoader(Code)



jspUri
protected String jspUri(Code)



jsw
protected JspServletWrapper jsw(Code)



loader
protected URLClassLoader loader(Code)



log
protected org.apache.juli.logging.Log log(Code)



options
protected Options options(Code)



outputDir
protected String outputDir(Code)



outputDirLock
static Object outputDirLock(Code)



protoTypeMode
protected boolean protoTypeMode(Code)



rctxt
protected JspRuntimeContext rctxt(Code)



removed
protected int removed(Code)



servletClass
protected Class servletClass(Code)



servletJavaFileName
protected String servletJavaFileName(Code)



tagFileJarUrl
protected URL tagFileJarUrl(Code)



tagFileJarUrls
protected Map<String, URL> tagFileJarUrls(Code)



tagInfo
protected TagInfo tagInfo(Code)



writer
protected ServletWriter writer(Code)




Constructor Detail
JspCompilationContext
public JspCompilationContext(String jspUri, boolean isErrPage, Options options, ServletContext context, JspServletWrapper jsw, JspRuntimeContext rctxt)(Code)



JspCompilationContext
public JspCompilationContext(String tagfile, TagInfo tagInfo, Options options, ServletContext context, JspServletWrapper jsw, JspRuntimeContext rctxt, URL tagFileJarUrl)(Code)




Method Detail
canonicalURI
final protected static String canonicalURI(String s)(Code)



checkOutputDir
public void checkOutputDir()(Code)



compile
public void compile() throws JasperException, FileNotFoundException(Code)



createCompiler
public Compiler createCompiler() throws JasperException(Code)
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.



createCompiler
protected Compiler createCompiler(String className)(Code)



createOutputDir
protected void createOutputDir()(Code)



getClassFileName
public String getClassFileName()(Code)



getClassLoader
public ClassLoader getClassLoader()(Code)
What class loader to use for loading classes while compiling this JSP?



getClassPath
public String getClassPath()(Code)
The classpath that is passed off to the Java compiler.



getCompiler
public Compiler getCompiler()(Code)



getContentType
public String getContentType()(Code)
Get the content type of this JSP. Content type includes content type and encoding.



getDerivedPackageName
protected String getDerivedPackageName()(Code)



getJavaPath
public String getJavaPath()(Code)
Path of the Java file relative to the work directory.



getJspFile
public String getJspFile()(Code)
Path of the JSP URI. Note that this is not a file name. This is the context rooted URI of the JSP file.



getJspLoader
public ClassLoader getJspLoader()(Code)



getOptions
public Options getOptions()(Code)
Get hold of the Options object for this context.



getOutputDir
public String getOutputDir()(Code)
The output directory to generate code into. The output directory is make up of the scratch directory, which is provide in Options, plus the directory derived from the package name.



getRealPath
public String getRealPath(String path)(Code)
Gets the actual path of a URI relative to the context of the compilation.



getResource
public URL getResource(String res) throws MalformedURLException(Code)



getResourceAsStream
public java.io.InputStream getResourceAsStream(String res)(Code)
Gets a resource as a stream, relative to the meanings of this context's implementation. a null if the resource cannot be found or represented as an InputStream.



getResourcePaths
public Set getResourcePaths(String path)(Code)



getRuntimeContext
public JspRuntimeContext getRuntimeContext()(Code)



getServletClassName
public String getServletClassName()(Code)
Just the class name (does not include package name) of the generated class.



getServletContext
public ServletContext getServletContext()(Code)



getServletJavaFileName
public String getServletJavaFileName()(Code)
Full path name of the Java file into which the servlet is being generated.



getServletPackageName
public String getServletPackageName()(Code)
Package name for the generated class is make up of the base package name, which is user settable, and the derived package name. The derived package name directly mirrors the file heirachy of the JSP page.



getTagFileJarUrl
public URL getTagFileJarUrl(String tagFile)(Code)
Returns the tag-file-name-to-JAR-file map of this compilation unit, which maps tag file names to the JAR files in which the tag files are packaged. The map is populated when parsing the tag-file elements of the TLDs of any imported taglibs.



getTagFileJarUrl
public URL getTagFileJarUrl()(Code)
Returns the JAR file in which the tag file for which this JspCompilationContext was created is packaged, or null if this JspCompilationContext does not correspond to a tag file, or if the corresponding tag file is not packaged in a JAR.



getTagInfo
public TagInfo getTagInfo()(Code)



getTldLocation
public String[] getTldLocation(String uri) throws JasperException(Code)
Gets the 'location' of the TLD associated with the given taglib 'uri'. An array of two Strings: The first element denotes the realpath to the TLD. If the path to the TLD points to a jar file, then thesecond element denotes the name of the TLD entry in the jar file.Returns null if the given uri is not associated with any tag library'exposed' in the web application.



getWriter
public ServletWriter getWriter()(Code)
Where is the servlet being generated?



incrementRemoved
public void incrementRemoved()(Code)



isErrorPage
public boolean isErrorPage()(Code)
Are we processing something that has been declared as an errorpage?



isPathSeparator
final protected static boolean isPathSeparator(char c)(Code)



isPrototypeMode
public boolean isPrototypeMode()(Code)
True if we are compiling a tag file in prototype mode. ie we only generate codes with class for the tag handler with empty method bodies.



isRemoved
public boolean isRemoved()(Code)



isTagFile
public boolean isTagFile()(Code)



keepGenerated
public boolean keepGenerated()(Code)
Are we keeping generated code around?



load
public Class load() throws JasperException, FileNotFoundException(Code)



makeOutputDir
protected boolean makeOutputDir()(Code)



resolveRelativeUri
public String resolveRelativeUri(String uri)(Code)
Get the full value of a URI relative to this compilations context uses current file as the base.



setClassLoader
public void setClassLoader(URLClassLoader loader)(Code)



setClassPath
public void setClassPath(String classPath)(Code)
The classpath that is passed off to the Java compiler.



setContentType
public void setContentType(String contentType)(Code)



setErrorPage
public void setErrorPage(boolean isErrPage)(Code)



setPrototypeMode
public void setPrototypeMode(boolean pm)(Code)



setServletClassName
public void setServletClassName(String className)(Code)



setServletPackageName
public void setServletPackageName(String servletPackageName)(Code)
The package name into which the servlet class is generated.



setTagFileJarUrl
public void setTagFileJarUrl(String tagFile, URL tagFileURL)(Code)



setTagInfo
public void setTagInfo(TagInfo tagi)(Code)



setWriter
public void setWriter(ServletWriter writer)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.