|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.module.rssaggregator.importhandler.FeedChannel
public class FeedChannel
A named
feed channel that typically belongs to an AggregateFeed
. Knows the url
on
which a given RSS or ATOM feed resides and holds
the feed
that was fetched after
succesful retrieval by a RSSFeedFetcher
.
AggregateFeed
,
RSSFeedFetcher
,
SyndFeed
Constructor Summary | |
---|---|
FeedChannel(String name,
String url,
String title)
Create a new feed channel from the given name , url and title . |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
com.sun.syndication.feed.synd.SyndFeed |
getFeed()
Return the feed (fetch result) for this feed channel. |
String |
getName()
Return the name of the feed channel. |
String |
getTitle()
Return the title of the feed channel. |
String |
getUrl()
Return the url which points to the RSS or ATOM feed for this feed channel. |
boolean |
hasFeed()
Return true when this feed channel contains a feed , false otherwise. |
int |
hashCode()
|
void |
setFeed(com.sun.syndication.feed.synd.SyndFeed feed)
Set the feed (fetch result) for this feed channel. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FeedChannel(String name, String url, String title)
name
, url
and title
.
name
- the name of the feed channel (e.g.: 'channel-0')url
- the url of the feed channel (e.g.: 'http://robl.jteam.nl/?feed=rss2'title
- the title of the feed channel (e.g.: 'I'll take the red pill ...')
IllegalArgumentException
- if the given name
or url
provided is blank, or
title
is null
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public boolean hasFeed()
true
when this feed channel contains a feed
, false
otherwise.
public String getName()
public String getUrl()
public String getTitle()
public void setFeed(com.sun.syndication.feed.synd.SyndFeed feed)
feed
- the feed (fetch result) for this feed channel (must not be null)
IllegalArgumentException
- if the given feed is null
public com.sun.syndication.feed.synd.SyndFeed getFeed()
null
if no result was set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |