Package io.micronaut.rss
Class RssItem.Builder
java.lang.Object
io.micronaut.rss.RssItem.Builder
- Enclosing class:
- RssItem
A RSS Item Channel.
-
Method Summary
Modifier and TypeMethodDescription@NonNull RssItem.Builder
@NonNull RssItem
build()
@NonNull RssItem.Builder
@NonNull RssItem.Builder
@NonNull RssItem.Builder
description
(String description) @NonNull RssItem.Builder
enclosure
(RssItemEnclosure enclosure) @NonNull RssItem.Builder
@NonNull RssItem.Builder
@NonNull RssItem.Builder
pubDate
(ZonedDateTime pubDate) @NonNull RssItem.Builder
@NonNull RssItem.Builder
-
Method Details
-
title
- Parameters:
title
- The title of the item.- Returns:
RssItem.Builder
-
link
- Parameters:
link
- The URL of the item.- Returns:
RssItem.Builder
-
description
- Parameters:
description
- The item synopsis.- Returns:
RssItem.Builder
-
author
- Parameters:
author
- Email address of the author of the item.- Returns:
RssItem.Builder
-
category
- Parameters:
category
- A list of categories.- Returns:
RssItem.Builder
-
comments
- Parameters:
comments
- URL of a page for comments relating to the item.- Returns:
RssItem.Builder
-
enclosure
- Parameters:
enclosure
- A media object that is attached to the item.- Returns:
RssItem.Builder
-
pubDate
- Parameters:
pubDate
- When the item was published.- Returns:
RssItem.Builder
-
guid
- Parameters:
guid
- A string that uniquely identifies the item.- Returns:
RssItem.Builder
-
source
- Parameters:
source
- The RSS channel that the item came from.- Returns:
RssItem.Builder
-
build
- Returns:
- Builds a
RssItem
-