Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
Feed(WikiContext 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 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.
|
protected String m_channelTitle
protected String m_channelDescription
protected String m_channelLanguage
protected WikiContext m_wikiContext
public static final String VAR_BLOGNAME
public Feed(WikiContext context)
context
- The WikiContext.public static String getSiteName(WikiContext context)
context
- the wiki contextpublic 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 filenameCopyright © 2001-2019 The Apache Software Foundation. All rights reserved.