Package io.micronaut.rss
Class RssChannel
java.lang.Object
io.micronaut.rss.RssChannel
- Direct Known Subclasses:
ItunesPodcast
- Since:
- 1.0
- Author:
- Sergio del Amo
- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static RssChannel.Builder
Specify one or more categories that the channel belongs to.getCloud()
Allows processes to register with a cloud to be notified of updates to the channel, implementing a lightweight publish-subscribe protocol for RSS feeds.Copyright notice for content in the channel.Phrase or sentence describing the channel.getDocs()
A URL that points to the documentation for the format used in the RSS file.A string indicating the program used to generate the channel.getImage()
Specifies a GIF, JPEG or PNG image that can be displayed with the channel.getItem()
An item may represent a "story" -- much like a story in a newspaper or magazine; if so its description is a synopsis of the story, and the link points to the full story.The language the channel is written in.The last time the content of the channel changed.getLink()
The publication date for the content in the channel.The PICS rating for the channel.A hint for aggregators telling them which days they can skip.A hint for aggregators telling them which hours they can skip.Specifies a text input box that can be displayed with the channel.getTitle()
The name of the channel.getTtl()
ttl stands for time to live.void
setCategory
(List<List<String>> category) void
void
setCopyright
(String copyright) void
setDescription
(String description) void
void
setGenerator
(String generator) void
setImage
(RssChannelImage image) void
void
setLanguage
(RssLanguage language) void
setLastBuildDate
(ZonedDateTime lastBuildDate) void
void
setManagingEditor
(String managingEditor) void
setPubDate
(ZonedDateTime pubDate) void
void
setSkipDays
(List<RssSkipDays> skipDays) void
setSkipHours
(List<RssSkipHours> skipHours) void
setTextInput
(RssTextInput textInput) void
void
void
setWebMaster
(String webMaster)
-
Constructor Details
-
RssChannel
public RssChannel()
-
-
Method Details
-
getTitle
The name of the channel.It's how people refer to your service. If you have an HTML website that contains the same information as your RSS file, the title of your channel should be the same as the title of your website.
- Returns:
- The name of the channel.
-
getLink
- Returns:
- The URL to the HTML website corresponding to the channel.
-
getDescription
Phrase or sentence describing the channel.- Returns:
- Phrase or sentence describing the channel.
-
getLanguage
The language the channel is written in. This allows aggregators to group all Italian language sites, for example, on a single page. A list of allowable values for this element, as provided by Netscape, is here. You may also use values defined by the W3C- Returns:
- The language the channel is written in.
-
getCopyright
Copyright notice for content in the channel.- Returns:
- Copyright notice for content in the channel.
-
getManagingEditor
- Returns:
- Email address for person responsible for editorial content.
-
getWebMaster
- Returns:
- Email address for person responsible for technical issues relating to channel.
-
getPubDate
The publication date for the content in the channel. For example, the New York Times publishes on a daily basis, the publication date flips once every 24 hours. That's when the pubDate of the channel changes. All date-times in RSS conform to the Date and Time Specification of RFC 822, with the exception that the year may be expressed with two characters or four characters (four preferred).- Returns:
- The publication date for the content in the channel.
-
getLastBuildDate
The last time the content of the channel changed.- Returns:
- The last time the content of the channel changed.
-
getCategory
Specify one or more categories that the channel belongs to. Follows the same rules as the- -level category element. More info.
- Returns:
- Specify one or more categories that the channel belongs to.
-
getGenerator
A string indicating the program used to generate the channel.- Returns:
- A string indicating the program used to generate the channel.
-
getDocs
A URL that points to the documentation for the format used in the RSS file. It's probably a pointer to this page. It's for people who might stumble across an RSS file on a Web server 25 years from now and wonder what it is.- Returns:
- A URL that points to the documentation for the format used in the RSS file
-
getCloud
Allows processes to register with a cloud to be notified of updates to the channel, implementing a lightweight publish-subscribe protocol for RSS feeds. More info here.- Returns:
- Allows processes to register with a cloud to be notified of updates to the channel, implementing a lightweight publish-subscribe protocol for RSS feeds.
-
getTtl
ttl stands for time to live. It's a number of minutes that indicates how long a channel can be cached before refreshing from the source. More info here.- Returns:
- It's a number of minutes that indicates how long a channel can be cached before refreshing from the source.
-
getImage
Specifies a GIF, JPEG or PNG image that can be displayed with the channel. More info here.- Returns:
- Specifies a GIF, JPEG or PNG image that can be displayed with the channel.
-
getRating
The PICS rating for the channel.- Returns:
- The PICS rating for the channel.
-
getTextInput
Specifies a text input box that can be displayed with the channel.- Returns:
- An optional
RssTextInput
-
getSkipHours
A hint for aggregators telling them which hours they can skip.- Returns:
- A hint for aggregators telling them which hours they can skip.
-
getSkipDays
A hint for aggregators telling them which days they can skip.- Returns:
- A hint for aggregators telling them which days they can skip.
-
getItem
An item may represent a "story" -- much like a story in a newspaper or magazine; if so its description is a synopsis of the story, and the link points to the full story.- Returns:
- An optional List of
RssItem
-
addItem
- Parameters:
item
- a RSS Item
-
setSkipDays
- Parameters:
skipDays
- a List ofRssSkipDays
-
setSkipHours
- Parameters:
skipHours
- a List ofRssSkipHours
.
-
setTextInput
- Parameters:
textInput
- ARssTextInput
.
-
setRating
- Parameters:
rating
- A PICS Rating.
-
setImage
- Parameters:
image
- GIF, JPEG or PNG image that can be displayed with the channel.
-
setTtl
- Parameters:
ttl
- time to live expressed in minutes.
-
setCloud
- Parameters:
cloud
- A cloud.
-
setDocs
- Parameters:
docs
- A URL that points to the documentation for the format used in the RSS file.
-
setGenerator
- Parameters:
generator
- A string indicating the program used to generate the channel.
-
setCategory
- Parameters:
category
- A list of categories to associate the RSS Channel with.
-
setLastBuildDate
- Parameters:
lastBuildDate
- The last time the content of the channel changed.
-
setPubDate
- Parameters:
pubDate
- The publication date for the content in the channel.
-
setWebMaster
- Parameters:
webMaster
- Email address for person responsible for technical issues relating to channel.
-
setManagingEditor
- Parameters:
managingEditor
- Email address for person responsible for editorial content.
-
setCopyright
- Parameters:
copyright
- Copyright notice for content in the channel.
-
setLanguage
- Parameters:
language
- The language the channel is written in.
-
setDescription
- Parameters:
description
- Phrase or sentence describing the channel.
-
setLink
- Parameters:
link
- The URL to the HTML website corresponding to the channel.
-
setTitle
- Parameters:
title
- The name of the channel.
-
setItem
- Parameters:
item
- A RSS Item.
-
builder
- Parameters:
title
- The name of the channel.link
- The URL to the HTML website corresponding to the channel.description
- Phrase or sentence describing the channel.- Returns:
- A Builder to build a
RssChannel
.
-