Java Doc for JspC.java in  » Sevlet-Container » tomcat-jasper2 » 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 » Sevlet Container » tomcat jasper2 » org.apache.jasper 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.jasper.JspC

JspC
public class JspC implements Options(Code)
Shell for the jspc compiler. Handles all options associated with the command line and creates compilation contexts which it then compiles according to the specified options. This version can process files from a _single_ webapp at once, i.e. a single docbase can be specified. It can be used as an Ant task using:
 <taskdef classname="org.apache.jasper.JspC" name="jasper2" >
 <classpath>
 <pathelement location="${java.home}/../lib/tools.jar"/>
 <fileset dir="${ENV.CATALINA_HOME}/server/lib">
 <include name="*.jar"/>
 </fileset>
 <fileset dir="${ENV.CATALINA_HOME}/common/lib">
 <include name="*.jar"/>
 </fileset>
 <path refid="myjars"/>
 </classpath>
 </taskdef>
 <jasper2 verbose="0"
 package="my.package"
 uriroot="${webapps.dir}/${webapp.name}"
 webXmlFragment="${build.dir}/generated_web.xml"
 outputDir="${webapp.dir}/${webapp.name}/WEB-INF/src/my/package" />
 

author:
   Danno Ferrin
author:
   Pierre Delisle
author:
   Costin Manolache


Field Summary
final public static  StringDEFAULT_IE_CLASS_ID
    


Method Summary
public  voidexecute()
    
public  booleangenStringAsCharArray()
     Indicates whether text strings are to be generated as char arrays.
public  voidgenerateWebMapping(String file, JspCompilationContext clctxt)
    
public  intgetCheckInterval()
    
public  booleangetClassDebugInfo()
    
public  StringgetClassPath()
    
public  StringgetCompiler()
     Compiler to use.
public  booleangetDevelopment()
    
public  booleangetErrorOnUseBeanInvalidClassAttribute()
    
public  booleangetFork()
    
public  StringgetIeClassId()
     Gets the class-id value that is sent to Internet Explorer when using tags.
public  StringgetJavaEncoding()
     Returns the encoding to use for java files.
public  StringgetJspCompilerPath()
    
public  ClassgetJspCompilerPlugin()
    
public  JspConfiggetJspConfig()
     Obtain JSP configuration informantion specified in web.xml.
public  booleangetKeepGenerated()
    
public  booleangetMappedFile()
    
public  ObjectgetProtectionDomain()
    
public  booleangetReloading()
    
public  FilegetScratchDir()
    
public  booleangetSendErrorToClient()
    
public  TagPluginManagergetTagPluginManager()
    
public  intgetTagPoolSize()
    
public  TldLocationsCachegetTldLocationsCache()
    
public  booleangetTrimSpaces()
    
public  booleanisPoolingEnabled()
    
public  booleanisSmapDumped()
    
public  booleanisSmapSuppressed()
    
public  booleanisXpoweredBy()
    
public static  voidmain(String arg)
    
protected  voidmergeIntoWebXml()
     Include the generated web.xml inside the webapp's web.xml.
public  voidscanFiles(File base)
     Locate all jsp files in the webapp.
public  voidsetAddWebXmlMappings(boolean b)
    
public  voidsetArgs(String[] arg)
    
public  voidsetClassDebugInfo(boolean b)
    
public  voidsetClassName(String p)
     Class name of the generated file ( without package ).
public  voidsetClassPath(String s)
    
public  voidsetCompile(boolean b)
    
public  voidsetCompiler(String c)
    
public  voidsetErrorOnUseBeanInvalidClassAttribute(boolean b)
    
public  voidsetGenStringAsCharArray(boolean genStringAsCharArray)
     Determines whether text strings are to be generated as char arrays, which improves performance in some cases.
public  voidsetIeClassId(String ieClassId)
     Sets the class-id value to be sent to Internet Explorer when using tags.
public  voidsetJavaEncoding(String encodingName)
     Sets the encoding to use for java files.
Parameters:
  encodingName - The name, e.g.
public  voidsetJspFiles(String jspFiles)
    
public  voidsetListErrors(boolean b)
    
public  voidsetOutputDir(String s)
    
public  voidsetPackage(String p)
    
public  voidsetPoolingEnabled(boolean poolingEnabled)
    
public  voidsetTrimSpaces(boolean ts)
    
public  voidsetUriroot(String s)
     Base dir for the webapp.
public  voidsetValidateXml(boolean b)
    
public  voidsetVerbose(int level)
    
public  voidsetWebXml(String s)
     File where we generate a complete web.xml with the class definitions.
public  voidsetWebXmlFragment(String s)
     File where we generate a web.xml fragment with the class definitions.
public  voidsetXpoweredBy(boolean xpoweredBy)
    

Field Detail
DEFAULT_IE_CLASS_ID
final public static String DEFAULT_IE_CLASS_ID(Code)





Method Detail
execute
public void execute() throws JasperException(Code)



genStringAsCharArray
public boolean genStringAsCharArray()(Code)
Indicates whether text strings are to be generated as char arrays. true if text strings are to be generated as char arrays, falseotherwise



generateWebMapping
public void generateWebMapping(String file, JspCompilationContext clctxt) throws IOException(Code)



getCheckInterval
public int getCheckInterval()(Code)
Background compilation check intervals in seconds



getClassDebugInfo
public boolean getClassDebugInfo()(Code)



getClassPath
public String getClassPath()(Code)



getCompiler
public String getCompiler()(Code)
Compiler to use.



getDevelopment
public boolean getDevelopment()(Code)
Is Jasper being used in development mode?



getErrorOnUseBeanInvalidClassAttribute
public boolean getErrorOnUseBeanInvalidClassAttribute()(Code)



getFork
public boolean getFork()(Code)



getIeClassId
public String getIeClassId()(Code)
Gets the class-id value that is sent to Internet Explorer when using tags. Class-id value



getJavaEncoding
public String getJavaEncoding()(Code)
Returns the encoding to use for java files. The default is UTF-8. String The encoding



getJspCompilerPath
public String getJspCompilerPath()(Code)



getJspCompilerPlugin
public Class getJspCompilerPlugin()(Code)



getJspConfig
public JspConfig getJspConfig()(Code)
Obtain JSP configuration informantion specified in web.xml.



getKeepGenerated
public boolean getKeepGenerated()(Code)



getMappedFile
public boolean getMappedFile()(Code)
Are we supporting HTML mapped servlets?



getProtectionDomain
public Object getProtectionDomain()(Code)



getReloading
public boolean getReloading()(Code)
JSP reloading check ?



getScratchDir
public File getScratchDir()(Code)



getSendErrorToClient
public boolean getSendErrorToClient()(Code)



getTagPluginManager
public TagPluginManager getTagPluginManager()(Code)



getTagPoolSize
public int getTagPoolSize()(Code)



getTldLocationsCache
public TldLocationsCache getTldLocationsCache()(Code)



getTrimSpaces
public boolean getTrimSpaces()(Code)



isPoolingEnabled
public boolean isPoolingEnabled()(Code)



isSmapDumped
public boolean isSmapDumped()(Code)
Should SMAP info for JSR45 debugging be dumped to a file?



isSmapSuppressed
public boolean isSmapSuppressed()(Code)
Is the generation of SMAP info for JSR45 debuggin suppressed?



isXpoweredBy
public boolean isXpoweredBy()(Code)



main
public static void main(String arg)(Code)



mergeIntoWebXml
protected void mergeIntoWebXml() throws IOException(Code)
Include the generated web.xml inside the webapp's web.xml.



scanFiles
public void scanFiles(File base) throws JasperException(Code)
Locate all jsp files in the webapp. Used if no explicit jsps are specified.



setAddWebXmlMappings
public void setAddWebXmlMappings(boolean b)(Code)



setArgs
public void setArgs(String[] arg) throws JasperException(Code)



setClassDebugInfo
public void setClassDebugInfo(boolean b)(Code)



setClassName
public void setClassName(String p)(Code)
Class name of the generated file ( without package ). Can only be used if a single file is converted. XXX Do we need this feature ?



setClassPath
public void setClassPath(String s)(Code)



setCompile
public void setCompile(boolean b)(Code)



setCompiler
public void setCompiler(String c)(Code)



setErrorOnUseBeanInvalidClassAttribute
public void setErrorOnUseBeanInvalidClassAttribute(boolean b)(Code)



setGenStringAsCharArray
public void setGenStringAsCharArray(boolean genStringAsCharArray)(Code)
Determines whether text strings are to be generated as char arrays, which improves performance in some cases.
Parameters:
  genStringAsCharArray - true if text strings are to be generated aschar arrays, false otherwise



setIeClassId
public void setIeClassId(String ieClassId)(Code)
Sets the class-id value to be sent to Internet Explorer when using tags.
Parameters:
  ieClassId - Class-id value



setJavaEncoding
public void setJavaEncoding(String encodingName)(Code)
Sets the encoding to use for java files.
Parameters:
  encodingName - The name, e.g. "UTF-8"



setJspFiles
public void setJspFiles(String jspFiles)(Code)



setListErrors
public void setListErrors(boolean b)(Code)



setOutputDir
public void setOutputDir(String s)(Code)



setPackage
public void setPackage(String p)(Code)



setPoolingEnabled
public void setPoolingEnabled(boolean poolingEnabled)(Code)



setTrimSpaces
public void setTrimSpaces(boolean ts)(Code)



setUriroot
public void setUriroot(String s)(Code)
Base dir for the webapp. Used to generate class names and resolve includes



setValidateXml
public void setValidateXml(boolean b)(Code)



setVerbose
public void setVerbose(int level)(Code)



setWebXml
public void setWebXml(String s)(Code)
File where we generate a complete web.xml with the class definitions.



setWebXmlFragment
public void setWebXmlFragment(String s)(Code)
File where we generate a web.xml fragment with the class definitions.



setXpoweredBy
public void setXpoweredBy(boolean xpoweredBy)(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.