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


java.lang.Object
   com.ecyrd.jspwiki.rss.RSSGenerator

RSSGenerator
public class RSSGenerator (Code)
Generates an RSS feed from the recent changes.

We use the 1.0 spec, including the wiki-specific extensions. Wiki extensions have been defined in UseMod:ModWiki.
author:
   Janne Jalkanen
since:
   1.7.5.



Field Summary
final public static  StringATOM
    
final public static  StringMODE_BLOG
    
final public static  StringMODE_FULL
    
final public static  StringMODE_WIKI
    
final public static  StringPROP_CHANNEL_DESCRIPTION
     Defines the property name for the RSS channel description.
final public static  StringPROP_CHANNEL_LANGUAGE
     Defines the property name for the RSS channel language.
final public static  StringPROP_CHANNEL_TITLE
    
final public static  StringPROP_GENERATE_RSS
     Defines the property name for the RSS generator main switch.
final public static  StringPROP_INTERVAL
     Defines the property name for the RSS generation interval in seconds.
final public static  StringPROP_RSSAUTHOR
    
final public static  StringPROP_RSSAUTHOREMAIL
    
final public static  StringPROP_RSSFILE
     Defines the property name for the RSS file that the wiki should generate.
final public static  StringPROP_RSS_AUTHOR
    
final public static  StringPROP_RSS_AUTHOREMAIL
    
final public static  StringPROP_RSS_COPYRIGHT
    
final public static  StringRSS10
    
final public static  StringRSS20
    
static  Loggerlog
    

Constructor Summary
public  RSSGenerator(WikiEngine engine, Properties properties)
     Initialize the RSS generator.

Method Summary
public static  Stringformat(String s)
     Does the required formatting and entity replacement for XML.
public  Stringgenerate()
     Generates the RSS resource.
protected  StringgenerateBlogRSS(WikiContext wikiContext, List changed, Feed feed)
     Creates RSS from modifications as if this page was a blog (using the WeblogPlugin).
Parameters:
  wikiContext - The WikiContext, as usual.
Parameters:
  changed - A list of the changed pages.
Parameters:
  feed - A valid Feed object.
public  StringgenerateFeed(WikiContext wikiContext, List changed, String mode, String type)
     Generates a feed based on a context and list of changes.
Parameters:
  wikiContext - The WikiContext
Parameters:
  changed - A list of Entry objects
Parameters:
  mode - The mode (wiki/blog)
Parameters:
  type - The type (RSS10, RSS20, ATOM).
protected  StringgenerateFullWikiRSS(WikiContext wikiContext, Feed feed)
     Generates an RSS feed for the entire wiki.
protected  StringgenerateWikiPageRSS(WikiContext wikiContext, List changed, Feed feed)
     Create RSS/Atom as if this page was a wikipage (in contrast to Blog mode).
public static  StringgetContentType(String mode)
     Returns the content type of this RSS feed.
since:
   2.3.15
Parameters:
  mode - the RSS mode: RSSGenerator.RSS10, RSSGenerator.RSS20 or RSSGenerator.ATOM.
public  booleanisEnabled()
     Returns true if RSS generation is enabled.
public synchronized  voidsetEnabled(boolean enabled)
     Turns RSS generation on or off.

Field Detail
ATOM
final public static String ATOM(Code)



MODE_BLOG
final public static String MODE_BLOG(Code)



MODE_FULL
final public static String MODE_FULL(Code)



MODE_WIKI
final public static String MODE_WIKI(Code)



PROP_CHANNEL_DESCRIPTION
final public static String PROP_CHANNEL_DESCRIPTION(Code)
Defines the property name for the RSS channel description. Default value for the channel description is an empty string.
since:
   1.7.6.



PROP_CHANNEL_LANGUAGE
final public static String PROP_CHANNEL_LANGUAGE(Code)
Defines the property name for the RSS channel language. Default value for the language is "en-us".
since:
   1.7.6.



PROP_CHANNEL_TITLE
final public static String PROP_CHANNEL_TITLE(Code)



PROP_GENERATE_RSS
final public static String PROP_GENERATE_RSS(Code)
Defines the property name for the RSS generator main switch.
since:
   1.7.6.



PROP_INTERVAL
final public static String PROP_INTERVAL(Code)
Defines the property name for the RSS generation interval in seconds.
since:
   1.7.6.



PROP_RSSAUTHOR
final public static String PROP_RSSAUTHOR(Code)



PROP_RSSAUTHOREMAIL
final public static String PROP_RSSAUTHOREMAIL(Code)



PROP_RSSFILE
final public static String PROP_RSSFILE(Code)
Defines the property name for the RSS file that the wiki should generate.
since:
   1.7.6.



PROP_RSS_AUTHOR
final public static String PROP_RSS_AUTHOR(Code)



PROP_RSS_AUTHOREMAIL
final public static String PROP_RSS_AUTHOREMAIL(Code)



PROP_RSS_COPYRIGHT
final public static String PROP_RSS_COPYRIGHT(Code)



RSS10
final public static String RSS10(Code)



RSS20
final public static String RSS20(Code)



log
static Logger log(Code)




Constructor Detail
RSSGenerator
public RSSGenerator(WikiEngine engine, Properties properties) throws NoRequiredPropertyException(Code)
Initialize the RSS generator.




Method Detail
format
public static String format(String s)(Code)
Does the required formatting and entity replacement for XML.



generate
public String generate()(Code)
Generates the RSS resource. You probably want to output this result into a file or something, or serve as output from a servlet.



generateBlogRSS
protected String generateBlogRSS(WikiContext wikiContext, List changed, Feed feed) throws ProviderException(Code)
Creates RSS from modifications as if this page was a blog (using the WeblogPlugin).
Parameters:
  wikiContext - The WikiContext, as usual.
Parameters:
  changed - A list of the changed pages.
Parameters:
  feed - A valid Feed object. The feed will be used to create the RSS/Atom, dependingon which kind of an object you want to put in it. A String of valid RSS or Atom.
throws:
  ProviderException - If reading of pages was not possible.



generateFeed
public String generateFeed(WikiContext wikiContext, List changed, String mode, String type) throws ProviderException(Code)
Generates a feed based on a context and list of changes.
Parameters:
  wikiContext - The WikiContext
Parameters:
  changed - A list of Entry objects
Parameters:
  mode - The mode (wiki/blog)
Parameters:
  type - The type (RSS10, RSS20, ATOM). Default is RSS 1.0 Fully formed XML.
throws:
  ProviderException - If the underlying provider failed.
throws:
  IllegalArgumentException - If an illegal mode is given.



generateFullWikiRSS
protected String generateFullWikiRSS(WikiContext wikiContext, Feed feed)(Code)
Generates an RSS feed for the entire wiki. Each item should be an instance of the RSSItem class.



generateWikiPageRSS
protected String generateWikiPageRSS(WikiContext wikiContext, List changed, Feed feed)(Code)
Create RSS/Atom as if this page was a wikipage (in contrast to Blog mode).
Parameters:
  wikiContext -
Parameters:
  changed -
Parameters:
  feed -



getContentType
public static String getContentType(String mode)(Code)
Returns the content type of this RSS feed.
since:
   2.3.15
Parameters:
  mode - the RSS mode: RSSGenerator.RSS10, RSSGenerator.RSS20 or RSSGenerator.ATOM. the content type



isEnabled
public boolean isEnabled()(Code)
Returns true if RSS generation is enabled. whether RSS generation is currently enabled



setEnabled
public synchronized void setEnabled(boolean enabled)(Code)
Turns RSS generation on or off. This setting is used to set the "enabled" flag only for use by callers, and does not actually affect whether the RSSGenerator.generate() or RSSGenerator.generateFeed(WikiContext,List,String,String) methods output anything.
Parameters:
  enabled - whether RSS generation is considered enabled.



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.