| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
m_channelDescription |
protected java.lang.String |
m_channelLanguage |
protected java.lang.String |
m_channelTitle |
protected java.util.List<Entry> |
m_entries |
protected java.lang.String |
m_feedURL |
protected java.lang.String |
m_mode |
protected Context |
m_wikiContext |
static java.lang.String |
VAR_BLOGNAME
Wiki variable storing the blog's name.
|
| Constructor and Description |
|---|
Feed(Context context)
Create a new Feed for a particular WikiContext.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(Entry e)
Adds a new Entry to the Feed, at the end of the list.
|
static java.lang.String |
format(java.lang.String s)
Does the required formatting and entity replacement for XML.
|
java.lang.String |
getChannelDescription() |
java.lang.String |
getChannelLanguage() |
java.lang.String |
getChannelTitle() |
java.lang.String |
getFeedURL() |
protected java.lang.String |
getMimeType(javax.servlet.ServletContext c,
java.lang.String name)
A helper method for figuring out the MIME type for an enclosure.
|
static java.lang.String |
getSiteName(Context context)
Figure out a site name for a feed.
|
abstract java.lang.String |
getString()
Returns the XML for the feed contents in a String format.
|
void |
setChannelDescription(java.lang.String description) |
void |
setChannelLanguage(java.lang.String language) |
void |
setChannelTitle(java.lang.String title) |
void |
setFeedURL(java.lang.String feedurl) |
void |
setMode(java.lang.String mode)
Set the mode of the Feed.
|
protected java.lang.String m_feedURL
protected java.lang.String m_channelTitle
protected java.lang.String m_channelDescription
protected java.lang.String m_channelLanguage
protected final Context m_wikiContext
protected java.lang.String m_mode
public static final java.lang.String VAR_BLOGNAME
public static java.lang.String getSiteName(Context context)
context - the wiki contextpublic void setMode(java.lang.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 java.lang.String getString()
public java.lang.String getChannelDescription()
public void setChannelDescription(java.lang.String description)
description - The m_channelDescription to set.public java.lang.String getChannelLanguage()
public void setChannelLanguage(java.lang.String language)
language - The m_channelLanguage to set.public java.lang.String getChannelTitle()
public void setChannelTitle(java.lang.String title)
title - The m_channelTitle to set.public java.lang.String getFeedURL()
public void setFeedURL(java.lang.String feedurl)
feedurl - The m_feedURL to set.protected java.lang.String getMimeType(javax.servlet.ServletContext c, java.lang.String name)
c - A ServletContextname - The filenamepublic static java.lang.String format(java.lang.String s)
s - The String to format. Null is safe.Copyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.