com.ecyrd.jspwiki.rss
Class Feed

java.lang.Object
  extended by com.ecyrd.jspwiki.rss.Feed
Direct Known Subclasses:
AtomFeed, RSS10Feed, RSS20Feed

public abstract class Feed
extends Object

Since:
Author:
jalkanen

Field Summary
protected  String m_channelDescription
           
protected  String m_channelLanguage
           
protected  String m_channelTitle
           
protected  List m_entries
           
protected  String m_feedURL
           
protected  String m_mode
           
protected  WikiContext m_wikiContext
           
 
Constructor Summary
Feed(WikiContext context)
           
 
Method Summary
 void addEntry(Entry e)
           
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)
           
abstract  String getString()
           
 void setChannelDescription(String description)
           
 void setChannelLanguage(String language)
           
 void setChannelTitle(String title)
           
 void setFeedURL(String m_feedurl)
           
 void setMode(String mode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_entries

protected List m_entries

m_feedURL

protected String m_feedURL

m_channelTitle

protected String m_channelTitle

m_channelDescription

protected String m_channelDescription

m_channelLanguage

protected String m_channelLanguage

m_wikiContext

protected WikiContext m_wikiContext

m_mode

protected String m_mode
Constructor Detail

Feed

public Feed(WikiContext context)
Method Detail

setMode

public void setMode(String mode)

addEntry

public void addEntry(Entry e)

getString

public abstract String getString()

getChannelDescription

public String getChannelDescription()
Returns:
Returns the m_channelDescription.

setChannelDescription

public void setChannelDescription(String description)
Parameters:
description - The m_channelDescription to set.

getChannelLanguage

public String getChannelLanguage()
Returns:
Returns the m_channelLanguage.

setChannelLanguage

public void setChannelLanguage(String language)
Parameters:
language - The m_channelLanguage to set.

getChannelTitle

public String getChannelTitle()
Returns:
Returns the m_channelTitle.

setChannelTitle

public void setChannelTitle(String title)
Parameters:
title - The m_channelTitle to set.

getFeedURL

public String getFeedURL()
Returns:
Returns the m_feedURL.

setFeedURL

public void setFeedURL(String m_feedurl)
Parameters:
m_feedurl - The m_feedURL to set.

getMimeType

protected String getMimeType(javax.servlet.ServletContext c,
                             String name)

format

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