org.infoglue.deliver.util.rss
Class RssHelper

java.lang.Object
  extended by org.infoglue.deliver.util.rss.RssHelper

public class RssHelper
extends java.lang.Object

Author:
mattias This is a helper class to interact with ROME - the sun sponsored RSS parser/generator.

Constructor Summary
RssHelper()
           
 
Method Summary
 void addEntry(com.sun.syndication.feed.synd.SyndFeed feed, java.lang.String title, java.lang.String link, java.util.Date publishedDate, java.lang.String description, java.lang.String descriptionContentType)
          This method adds an entry to a feed.
 com.sun.syndication.feed.synd.SyndFeed getFeed(java.lang.String feedType, java.lang.String title, java.lang.String link, java.lang.String description, java.lang.String encoding)
          This method returns a new SyndFeed instansiated with the parameters send in and with an empty entry-list.
 java.lang.String render(com.sun.syndication.feed.synd.SyndFeed feed)
          The method that prints the xml and returns it as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RssHelper

public RssHelper()
Method Detail

render

public java.lang.String render(com.sun.syndication.feed.synd.SyndFeed feed)
The method that prints the xml and returns it as a string.

Returns:

getFeed

public com.sun.syndication.feed.synd.SyndFeed getFeed(java.lang.String feedType,
                                                      java.lang.String title,
                                                      java.lang.String link,
                                                      java.lang.String description,
                                                      java.lang.String encoding)
                                               throws java.io.IOException,
                                                      com.sun.syndication.io.FeedException
This method returns a new SyndFeed instansiated with the parameters send in and with an empty entry-list.

Parameters:
title -
link -
description -
Returns:
Throws:
java.io.IOException
com.sun.syndication.io.FeedException

addEntry

public void addEntry(com.sun.syndication.feed.synd.SyndFeed feed,
                     java.lang.String title,
                     java.lang.String link,
                     java.util.Date publishedDate,
                     java.lang.String description,
                     java.lang.String descriptionContentType)
              throws java.io.IOException,
                     com.sun.syndication.io.FeedException
This method adds an entry to a feed. No magic.

Parameters:
feed -
title -
link -
publishedDate -
description -
descriptionContentType -
Throws:
java.io.IOException
com.sun.syndication.io.FeedException


Copyright © 2005 InfoGlue.org All Rights Reserved.