net.sourceforge.cruisecontrol.publishers.rss
Class Feed

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.publishers.rss.Feed
Direct Known Subclasses:
CruiseControlFeed

public class Feed
extends java.lang.Object

The feed class acts as a generic RSS Feed (there's no CruiseControl-specific functionality in this class). Copyright (c) 2005 Hewlett-Packard Development Company, L.P.

Author:
Patrick Conant

Constructor Summary
Feed(java.io.File publishToFile)
          Constructor
 
Method Summary
 void addItem(Item item)
           
 java.lang.String getDescription()
           
 java.util.List getItems()
           
 java.lang.String getLink()
           
 int getMaxLength()
           
 java.lang.String getTitle()
          Returns the title of the RSS feed.
 void setDescription(java.lang.String description)
           
 void setLink(java.lang.String link)
           
 void setMaxLength(int max)
           
 void setTitle(java.lang.String title)
          Set the title of the RSS feed.
 void write(java.io.Writer wr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Feed

public Feed(java.io.File publishToFile)
Constructor

Parameters:
publishToFile - the file to which the feed should be published.
Method Detail

setTitle

public void setTitle(java.lang.String title)
Set the title of the RSS feed. The title will go into the /rss/title element in the RSS XML.

Parameters:
title - the title of the RSS feed.

getTitle

public java.lang.String getTitle()
Returns the title of the RSS feed. The title goes into the /rss/title element in the RSS XML.

Returns:
title the title of the RSS feed.

setLink

public void setLink(java.lang.String link)

getLink

public java.lang.String getLink()

setDescription

public void setDescription(java.lang.String description)

getDescription

public java.lang.String getDescription()

setMaxLength

public void setMaxLength(int max)

getMaxLength

public int getMaxLength()

addItem

public void addItem(Item item)

getItems

public java.util.List getItems()

write

public void write(java.io.Writer wr)
           throws java.io.IOException
Throws:
java.io.IOException