|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wiki.rss.Feed
public abstract class Feed

Represents an abstract feed.
| Field Summary | |
|---|---|
protected String |
m_channelDescription
|
protected String |
m_channelLanguage
|
protected String |
m_channelTitle
|
protected List<Entry> |
m_entries
|
protected String |
m_feedURL
|
protected String |
m_mode
|
protected WikiContext |
m_wikiContext
|
static String |
VAR_BLOGNAME
Wiki variable storing the blog's name. |
| Constructor Summary | |
|---|---|
Feed(WikiContext context)
Create a new Feed for a particular WikiContext. |
|
| Method Summary | |
|---|---|
void |
addEntry(Entry e)
Adds a new Entry to the Feed, at the end of the list. |
static String |
format(String s)
Does the required formatting and entity replacement for XML. |
String |
getChannelDescription()
|
String |
getChannelLanguage()
|
String |
getChannelTitle()
|
String |
getFeedURL()
|
protected String |
getMimeType(javax.servlet.ServletContext c,
String name)
A helper method for figuring out the MIME type for an enclosure. |
static String |
getSiteName(WikiContext context)
Figure out a site name for a feed. |
abstract String |
getString()
Returns the XML for the feed contents in a String format. |
void |
setChannelDescription(String description)
|
void |
setChannelLanguage(String language)
|
void |
setChannelTitle(String title)
|
void |
setFeedURL(String feedurl)
|
void |
setMode(String mode)
Set the mode of the Feed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<Entry> m_entries
protected String m_feedURL
protected String m_channelTitle
protected String m_channelDescription
protected String m_channelLanguage
protected WikiContext m_wikiContext
protected String m_mode
public static final String VAR_BLOGNAME
| Constructor Detail |
|---|
public Feed(WikiContext context)
context - The WikiContext.| Method Detail |
|---|
public static String getSiteName(WikiContext context)
context - the wiki context
public void setMode(String mode)
RSSGenerator.MODE_WIKI - to create a wiki diff list per page.RSSGenerator.MODE_BLOG - to assume that the Entries are blog entries.RSSGenerator.MODE_FULL - to create a wiki diff list for the entire blog.
mode - As defined in RSSGenerator.public void addEntry(Entry e)
e - The Entry to add.public abstract String getString()
public String getChannelDescription()
public void setChannelDescription(String description)
description - The m_channelDescription to set.public String getChannelLanguage()
public void setChannelLanguage(String language)
language - The m_channelLanguage to set.public String getChannelTitle()
public void setChannelTitle(String title)
title - The m_channelTitle to set.public String getFeedURL()
public void setFeedURL(String feedurl)
feedurl - The m_feedURL to set.
protected String getMimeType(javax.servlet.ServletContext c,
String name)
c - A ServletContextname - The filename
public static String format(String s)
s - The String to format. Null is safe.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||