public class RssChannel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RSS_LANGUAGE_CODE_REGEX |
Constructor and Description |
---|
RssChannel() |
Modifier and Type | Method and Description |
---|---|
void |
addItem(RssItem item) |
static io.micronaut.rss.RssChannel.Builder |
builder(java.lang.String title,
java.lang.String link,
java.lang.String description) |
java.util.Optional<java.util.List<java.util.List<java.lang.String>>> |
getCategory()
Specify one or more categories that the channel belongs to.
|
java.util.Optional<java.lang.String> |
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.
|
java.util.Optional<java.lang.String> |
getCopyright()
Copyright notice for content in the channel.
|
java.lang.String |
getDescription()
Phrase or sentence describing the channel.
|
java.util.Optional<java.lang.String> |
getDocs()
A URL that points to the documentation for the format used in the RSS file.
|
java.util.Optional<java.lang.String> |
getGenerator()
A string indicating the program used to generate the channel.
|
java.util.Optional<RssChannelImage> |
getImage()
Specifies a GIF, JPEG or PNG image that can be displayed with the channel.
|
java.util.Optional<java.util.List<RssItem>> |
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.
|
java.util.Optional<RssLanguage> |
getLanguage()
The language the channel is written in.
|
java.util.Optional<java.time.ZonedDateTime> |
getLastBuildDate()
The last time the content of the channel changed.
|
java.lang.String |
getLink() |
java.util.Optional<java.lang.String> |
getManagingEditor() |
java.util.Optional<java.time.ZonedDateTime> |
getPubDate()
The publication date for the content in the channel.
|
java.util.Optional<java.lang.String> |
getRating()
The PICS rating for the channel.
|
java.util.Optional<java.util.List<RssSkipDays>> |
getSkipDays()
A hint for aggregators telling them which days they can skip.
|
java.util.Optional<java.util.List<RssSkipHours>> |
getSkipHours()
A hint for aggregators telling them which hours they can skip.
|
java.util.Optional<RssTextInput> |
getTextInput()
Specifies a text input box that can be displayed with the channel.
|
java.lang.String |
getTitle()
The name of the channel.
|
java.util.Optional<java.lang.Integer> |
getTtl()
ttl stands for time to live.
|
java.util.Optional<java.lang.String> |
getWebMaster() |
void |
setCategory(java.util.List<java.util.List<java.lang.String>> category) |
void |
setCloud(java.lang.String cloud) |
void |
setCopyright(java.lang.String copyright) |
void |
setDescription(java.lang.String description) |
void |
setDocs(java.lang.String docs) |
void |
setGenerator(java.lang.String generator) |
void |
setImage(RssChannelImage image) |
void |
setItem(java.util.List<RssItem> item) |
void |
setLanguage(RssLanguage language) |
void |
setLastBuildDate(java.time.ZonedDateTime lastBuildDate) |
void |
setLink(java.lang.String link) |
void |
setManagingEditor(java.lang.String managingEditor) |
void |
setPubDate(java.time.ZonedDateTime pubDate) |
void |
setRating(java.lang.String rating) |
void |
setSkipDays(java.util.List<RssSkipDays> skipDays) |
void |
setSkipHours(java.util.List<RssSkipHours> skipHours) |
void |
setTextInput(RssTextInput textInput) |
void |
setTitle(java.lang.String title) |
void |
setTtl(java.lang.Integer ttl) |
void |
setWebMaster(java.lang.String webMaster) |
public static final java.lang.String RSS_LANGUAGE_CODE_REGEX
public java.lang.String getTitle()
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.
public java.lang.String getLink()
public java.lang.String getDescription()
public java.util.Optional<RssLanguage> getLanguage()
public java.util.Optional<java.lang.String> getCopyright()
public java.util.Optional<java.lang.String> getManagingEditor()
public java.util.Optional<java.lang.String> getWebMaster()
public java.util.Optional<java.time.ZonedDateTime> getPubDate()
public java.util.Optional<java.time.ZonedDateTime> getLastBuildDate()
public java.util.Optional<java.util.List<java.util.List<java.lang.String>>> getCategory()
public java.util.Optional<java.lang.String> getGenerator()
public java.util.Optional<java.lang.String> getDocs()
public java.util.Optional<java.lang.String> getCloud()
public java.util.Optional<java.lang.Integer> getTtl()
public java.util.Optional<RssChannelImage> getImage()
public java.util.Optional<java.lang.String> getRating()
public java.util.Optional<RssTextInput> getTextInput()
RssTextInput
public java.util.Optional<java.util.List<RssSkipHours>> getSkipHours()
public java.util.Optional<java.util.List<RssSkipDays>> getSkipDays()
public java.util.Optional<java.util.List<RssItem>> getItem()
RssItem
public void addItem(RssItem item)
item
- a RSS Itempublic void setSkipDays(java.util.List<RssSkipDays> skipDays)
skipDays
- a List of RssSkipDays
public void setSkipHours(java.util.List<RssSkipHours> skipHours)
skipHours
- a List of RssSkipHours
.public void setTextInput(RssTextInput textInput)
textInput
- A RssTextInput
.public void setRating(java.lang.String rating)
rating
- A PICS Rating.public void setImage(RssChannelImage image)
image
- GIF, JPEG or PNG image that can be displayed with the channel.public void setTtl(java.lang.Integer ttl)
ttl
- time to live expressed in minutes.public void setCloud(java.lang.String cloud)
cloud
- A cloud.public void setDocs(java.lang.String docs)
docs
- A URL that points to the documentation for the format used in the RSS file.public void setGenerator(java.lang.String generator)
generator
- A string indicating the program used to generate the channel.public void setCategory(java.util.List<java.util.List<java.lang.String>> category)
category
- A list of categories to associate the RSS Channel with.public void setLastBuildDate(java.time.ZonedDateTime lastBuildDate)
lastBuildDate
- The last time the content of the channel changed.public void setPubDate(java.time.ZonedDateTime pubDate)
pubDate
- The publication date for the content in the channel.public void setWebMaster(java.lang.String webMaster)
webMaster
- Email address for person responsible for technical issues relating to channel.public void setManagingEditor(java.lang.String managingEditor)
managingEditor
- Email address for person responsible for editorial content.public void setCopyright(java.lang.String copyright)
copyright
- Copyright notice for content in the channel.public void setLanguage(RssLanguage language)
language
- The language the channel is written in.public void setDescription(java.lang.String description)
description
- Phrase or sentence describing the channel.public void setLink(java.lang.String link)
link
- The URL to the HTML website corresponding to the channel.public void setTitle(java.lang.String title)
title
- The name of the channel.public void setItem(java.util.List<RssItem> item)
item
- A RSS Item.public static io.micronaut.rss.RssChannel.Builder builder(java.lang.String title, java.lang.String link, java.lang.String description)
title
- The name of the channel.link
- The URL to the HTML website corresponding to the channel.description
- Phrase or sentence describing the channel.RssChannel
.