Java Doc for JspEngineContext.java in  » Portal » Open-Portal » com » sun » portal » providers » jsp » jasper3 » 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 » Portal » Open Portal » com.sun.portal.providers.jsp.jasper3.jasper 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.portal.providers.jsp.jasper3.jasper.JspEngineContext

JspEngineContext
public class JspEngineContext implements 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. JspLoader creates this object and passes this off to the "compiler" subsystem, which then initializes the rest of the variables.
author:
   Anil K. Vijendran
author:
   Harish Prabandham


Field Summary
 Stringclasspath
    
 StringcontentType
    
 ServletContextcontext
    
 booleanisErrPage
    
 StringjspFile
    
 JasperLoaderloader
    
 Optionsoptions
    
 JspReaderreader
    
 HttpServletRequestreq
    
 HttpServletResponseres
    
 StringservletClassName
    
 StringservletJavaFileName
    
 StringservletPackageName
    
 ServletWriterwriter
    

Constructor Summary
public  JspEngineContext(JasperLoader loader, String classpath, ServletContext context, String jspFile, boolean isErrPage, Options options, HttpServletRequest req, HttpServletResponse res)
    

Method Summary
public  voidaddJar(String jar)
    
public  CompilercreateCompiler()
     Create a "Compiler" object based on some init param data.
public  ClassLoadergetClassLoader()
     What class loader to use for loading classes while compiling this JSP? I don't think this is used right now -- akv.
public  StringgetClassPath()
     The classpath that is passed off to the Java compiler.
public  StringgetContentType()
     What's the content type of this JSP? Content type includes content type and encoding.
final public  StringgetFullClassName()
     Utility method to get the full class name from the package and class name.
public  StringgetJspFile()
     Path of the JSP URI.
public  OptionsgetOptions()
     Get hold of the Options object for this context.
public  StringgetOutputDir()
     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  JspReadergetReader()
     Get the input reader for the JSP text.
public  StringgetRealPath(String path)
     Gets the actual path of a URI relative to the context of the compilation.
public  HttpServletRequestgetRequest()
     Get the http request we are servicing now...
public  java.io.InputStreamgetResourceAsStream(String res)
     Gets a resource as a stream, relative to the meanings of this context's implementation.
public  HttpServletResponsegetResponse()
     Get the http response we are using now...
public  StringgetServletClassName()
     Just the class name (does not include package name) of the generated class.
public  ServletContextgetServletContext()
     Get the ServletContext for the JSP we're processing now.
public  StringgetServletJavaFileName()
     Full path name of the Java file into which the servlet is being generated.
public  StringgetServletPackageName()
     The package name into which the servlet class is generated.
public  ServletWritergetWriter()
    
public  booleanisErrorPage()
    
public  booleankeepGenerated()
    
public  StringresolveRelativeUri(String uri)
    
public  voidsetContentType(String contentType)
    
public  voidsetErrorPage(boolean isErrPage)
    
public  voidsetReader(JspReader reader)
    
public  voidsetServletClassName(String servletClassName)
    
public  voidsetServletJavaFileName(String servletJavaFileName)
    
public  voidsetServletPackageName(String servletPackageName)
    
public  voidsetWriter(ServletWriter writer)
    

Field Detail
classpath
String classpath(Code)



contentType
String contentType(Code)



context
ServletContext context(Code)



isErrPage
boolean isErrPage(Code)



jspFile
String jspFile(Code)



loader
JasperLoader loader(Code)



options
Options options(Code)



reader
JspReader reader(Code)



req
HttpServletRequest req(Code)



res
HttpServletResponse res(Code)



servletClassName
String servletClassName(Code)



servletJavaFileName
String servletJavaFileName(Code)



servletPackageName
String servletPackageName(Code)



writer
ServletWriter writer(Code)




Constructor Detail
JspEngineContext
public JspEngineContext(JasperLoader loader, String classpath, ServletContext context, String jspFile, boolean isErrPage, Options options, HttpServletRequest req, HttpServletResponse res)(Code)




Method Detail
addJar
public void addJar(String jar) throws IOException(Code)



createCompiler
public Compiler createCompiler() throws JasperException(Code)
Create a "Compiler" object based on some init param data. If jspCompilerPlugin is not specified or is not available, the SunJavaCompiler is used.



getClassLoader
public ClassLoader getClassLoader()(Code)
What class loader to use for loading classes while compiling this JSP? I don't think this is used right now -- akv.



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



getContentType
public String getContentType()(Code)
What's the content type of this JSP? Content type includes content type and encoding.



getFullClassName
final public String getFullClassName()(Code)
Utility method to get the full class name from the package and class name.



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.



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



getOutputDir
public String getOutputDir()(Code)
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.



getReader
public JspReader getReader()(Code)
Get the input reader for the JSP text.



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



getRequest
public HttpServletRequest getRequest()(Code)
Get the http request we are servicing now...



getResourceAsStream
public java.io.InputStream getResourceAsStream(String res)(Code)
Gets a resource as a stream, relative to the meanings of this context's implementation.



getResponse
public HttpServletResponse getResponse()(Code)
Get the http response we are using now...



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



getServletContext
public ServletContext getServletContext()(Code)
Get the ServletContext for the JSP we're processing now.



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



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



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



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



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



resolveRelativeUri
public String resolveRelativeUri(String uri)(Code)
Get the full value of a URI relative to this compilations context



setContentType
public void setContentType(String contentType)(Code)



setErrorPage
public void setErrorPage(boolean isErrPage)(Code)



setReader
public void setReader(JspReader reader)(Code)



setServletClassName
public void setServletClassName(String servletClassName)(Code)



setServletJavaFileName
public void setServletJavaFileName(String servletJavaFileName)(Code)



setServletPackageName
public void setServletPackageName(String servletPackageName)(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.j_a_va_2___s_._c___om_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.