org.openi.xml
Class RssFeedGenerator

java.lang.Object
  extended by org.openi.xml.RssFeedGenerator

public class RssFeedGenerator
extends java.lang.Object

Uses the informa rss feed parser library. Responsible for creating new rss channels, exporting to xml, retrieving rss feeds - both internal and external.


Constructor Summary
RssFeedGenerator()
           
 
Method Summary
static de.nava.informa.core.ChannelIF createChannel(Menu menu)
          Create an rss ChannelIF object, based on a users' OpenI menu.
static de.nava.informa.core.ChannelIF createChannel(java.lang.String feedUrl)
          traps an IOException
static de.nava.informa.core.ChannelIF createStaticChannel()
          This method is not so cool b/c removes boundary between informa api and openi but when I exposed only the xml via servlet - user not authenticated problem so had to expose direct call to the actual channel object Malformed url exceptions are trapped.
static void exportFeed(java.io.Writer writer, de.nava.informa.core.ChannelIF channel)
          Generates rss feed xml (v2.0) from the channel object, piping the results to the writer stream.
static void exportFeed(java.io.Writer writer, de.nava.informa.core.ChannelIF channel, java.lang.String encoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RssFeedGenerator

public RssFeedGenerator()
Method Detail

createStaticChannel

public static de.nava.informa.core.ChannelIF createStaticChannel()
This method is not so cool b/c removes boundary between informa api and openi but when I exposed only the xml via servlet - user not authenticated problem so had to expose direct call to the actual channel object Malformed url exceptions are trapped.


createChannel

public static de.nava.informa.core.ChannelIF createChannel(java.lang.String feedUrl)
traps an IOException

Parameters:
feedUrl -
Returns:
null if parser throws an IOException, ParseException

createChannel

public static de.nava.informa.core.ChannelIF createChannel(Menu menu)
Create an rss ChannelIF object, based on a users' OpenI menu.

Parameters:
menu -
Returns:

exportFeed

public static void exportFeed(java.io.Writer writer,
                              de.nava.informa.core.ChannelIF channel)
Generates rss feed xml (v2.0) from the channel object, piping the results to the writer stream. Traps IOExceptions. Uses default character encoding UTF-8


exportFeed

public static void exportFeed(java.io.Writer writer,
                              de.nava.informa.core.ChannelIF channel,
                              java.lang.String encoding)