Java Doc for RenderingManager.java in  » Wiki-Engine » JSPWiki » com » ecyrd » jspwiki » render » 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 » Wiki Engine » JSPWiki » com.ecyrd.jspwiki.render 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ecyrd.jspwiki.render.RenderingManager

RenderingManager
public class RenderingManager implements WikiEventListener,InternalModule(Code)
This class provides a facade towards the differing rendering routines. You should use the routines in this manager instead of the ones in WikiEngine, if you don't want the different side effects to occur - such as WikiFilters.

This class also manages a rendering cache, i.e. documents are stored between calls. You may control the size of the cache by using the "jspwiki.renderingManager.cacheSize" parameter in jspwiki.properties. The property value is the number of items that are stored in the cache. By default, the value of this parameter is taken from the "jspwiki.cachingProvider.cacheSize" parameter (i.e. the rendering cache is the same size as the page cache), but you may control them separately.

You can turn caching completely off by stating a cacheSize of zero.
author:
   jalkanen
since:
   2.4



Field Summary
final public static  StringDEFAULT_RENDERER
    
final public static  StringPROP_CACHESIZE
    
final public static  StringVAR_EXECUTE_PLUGINS
    
final public static  StringWYSIWYG_EDITOR_MODE
    


Method Summary
public  voidactionPerformed(WikiEvent event)
     Flushes the document cache in response to a POST_SAVE_BEGIN event.
public  StringgetHTML(WikiContext context, WikiDocument doc)
     Simply renders a WikiDocument to a String.
public  StringgetHTML(WikiContext context, String pagedata)
     Convinience method for rendering, using the default parser and renderer.
public  MarkupParsergetParser(WikiContext context, String pagedata)
     Returns the default Parser for this context.
protected  WikiDocumentgetRenderedDocument(WikiContext context, String pagedata)
     Returns a cached document, if one is found.
public  WikiRenderergetRenderer(WikiContext context, WikiDocument doc)
     Returns a WikiRenderer instance, initialized with the given context and doc.
public  voidinitialize(WikiEngine engine, Properties properties)
     Initializes the RenderingManager.

Field Detail
DEFAULT_RENDERER
final public static String DEFAULT_RENDERER(Code)



PROP_CACHESIZE
final public static String PROP_CACHESIZE(Code)



VAR_EXECUTE_PLUGINS
final public static String VAR_EXECUTE_PLUGINS(Code)



WYSIWYG_EDITOR_MODE
final public static String WYSIWYG_EDITOR_MODE(Code)





Method Detail
actionPerformed
public void actionPerformed(WikiEvent event)(Code)
Flushes the document cache in response to a POST_SAVE_BEGIN event.
See Also:   com.ecyrd.jspwiki.event.WikiEventListener.actionPerformed(com.ecyrd.jspwiki.event.WikiEvent)



getHTML
public String getHTML(WikiContext context, WikiDocument doc) throws IOException(Code)
Simply renders a WikiDocument to a String. This version does not get the document from the cache - in fact, it does not cache the document at all. This is very useful, if you have something that you want to render outside the caching routines. Because the cache is based on full pages, and the cache keys are based on names, use this routine if you're rendering anything for yourself.
Parameters:
  context - The WikiContext to render in
Parameters:
  doc - A proper WikiDocument Rendered HTML.
throws:
  IOException - If the WikiDocument is poorly formed.



getHTML
public String getHTML(WikiContext context, String pagedata)(Code)
Convinience method for rendering, using the default parser and renderer. Note that you can't use this method to do any arbitrary rendering, as the pagedata MUST be the data from the that the WikiContext refers to - this method caches the HTML internally, and will return the cached version. If the pagedata is different from what was cached, will re-render and store the pagedata into the internal cache.
Parameters:
  context - the wiki context
Parameters:
  pagedata - the page data XHTML data.



getParser
public MarkupParser getParser(WikiContext context, String pagedata)(Code)
Returns the default Parser for this context.
Parameters:
  context - the wiki context
Parameters:
  pagedata - the page data A MarkupParser instance.



getRenderedDocument
protected WikiDocument getRenderedDocument(WikiContext context, String pagedata) throws IOException(Code)
Returns a cached document, if one is found.
Parameters:
  context - the wiki context
Parameters:
  pagedata - the page data the rendered wiki document
throws:
  IOException -



getRenderer
public WikiRenderer getRenderer(WikiContext context, WikiDocument doc)(Code)
Returns a WikiRenderer instance, initialized with the given context and doc. The object is an XHTMLRenderer, unless overridden in jspwiki.properties with PROP_RENDERER.



initialize
public void initialize(WikiEngine engine, Properties properties) throws WikiException(Code)
Initializes the RenderingManager. Checks for cache size settings, initializes the document cache. Looks for alternative WikiRenderers, initializes one, or the default XHTMLRenderer, for use.
Parameters:
  engine - A WikiEngine instance.
Parameters:
  properties - A list of properties to get parameters from.



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.