public class FeedChannel extends Object
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
successful retrieval by a RSSFeedFetcher
.AggregateFeed
,
RSSFeedFetcher
,
SyndFeed
Constructor and Description |
---|
FeedChannel(String name,
String url,
String title)
Create a new feed channel from the given
name , url and title . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
com.rometools.rome.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()
|
int |
hashCode() |
void |
setFeed(com.rometools.rome.feed.synd.SyndFeed feed)
Set the feed (fetch result) for this feed channel.
|
String |
toString() |
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
public boolean hasFeed()
public String getName()
public String getUrl()
public String getTitle()
public void setFeed(com.rometools.rome.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.rometools.rome.feed.synd.SyndFeed getFeed()
null
if no result was setCopyright © 2016 Magnolia International Ltd.. All rights reserved.