Package io.micronaut.rss.jsonfeed
Class JsonFeedItem.Builder
java.lang.Object
io.micronaut.rss.jsonfeed.JsonFeedItem.Builder
- Enclosing class:
- JsonFeedItem
JSON Feed Item Builder.
-
Method Summary
Modifier and TypeMethodDescription@NonNull JsonFeedItem.Builder
attachment
(@NonNull JsonFeedAttachment attachment) Attachments associated with the item.@NonNull JsonFeedItem.Builder
author
(JsonFeedAuthor author) Adds an author to the feed.@NonNull JsonFeedItem.Builder
bannerImage
(String bannerImage) The URL of an image to use as a banner.@NonNull JsonFeedItem
build()
@NonNull JsonFeedItem.Builder
contentHtml
(String contentHtml) The html content of the item in the feed.@NonNull JsonFeedItem.Builder
contentText
(String contentText) The text content of the item in the feed.@NonNull JsonFeedItem.Builder
dateModified
(String dateModified) Specifies the last modified date in RFC 3339.@NonNull JsonFeedItem.Builder
dateModified
(ZonedDateTime dateModified) Specifies the last modified date in RFC 3339.@NonNull JsonFeedItem.Builder
datePublished
(String datePublished) Specifies the publishing date in RFC 3339.@NonNull JsonFeedItem.Builder
datePublished
(ZonedDateTime datePublished) Specifies the publishing date in RFC 3339.@NonNull JsonFeedItem.Builder
externalUrl
(String externalUrl) The URL of a page elsewhere.@NonNull JsonFeedItem.Builder
@NonNull JsonFeedItem.Builder
The URL of the main image for the item.@NonNull JsonFeedItem.Builder
language
(@NonNull RssLanguage language) The primary language for the feed in the format specified in RFC 5646.@NonNull JsonFeedItem.Builder
Plain text sentence or two describing the item.@NonNull JsonFeedItem.Builder
Associate a tag with the item.@NonNull JsonFeedItem.Builder
Title of the item in feed.@NonNull JsonFeedItem.Builder
The URL of the resource described by the item.
-
Method Details
-
id
- Parameters:
id
- unique for the item for that feed over time.- Returns:
- The Builder
-
url
The URL of the resource described by the item. It’s the permalink.- Parameters:
url
- the URL of the resource described by the item- Returns:
- Builder
-
externalUrl
The URL of a page elsewhere. This is especially useful for linkblogs- Parameters:
externalUrl
- the URL of a page- Returns:
- Builder
-
title
Title of the item in feed.- Parameters:
title
- title of the item in feed- Returns:
- Builder
-
contentHtml
The html content of the item in the feed.- Parameters:
contentHtml
- the html content of the item in the feed- Returns:
- Builder
-
contentText
The text content of the item in the feed.- Parameters:
contentText
- the text content of the item in the feed- Returns:
- Builder
-
summary
Plain text sentence or two describing the item.- Parameters:
summary
- plain text sentence or two describing the item- Returns:
- Builder
-
image
The URL of the main image for the item.- Parameters:
image
- the URL of the main image for the item- Returns:
- Builder
-
bannerImage
The URL of an image to use as a banner.- Parameters:
bannerImage
- the URL of an image to use as a banner- Returns:
- Builder
-
datePublished
Specifies the publishing date in RFC 3339.- Parameters:
datePublished
- specifies the publishing date in RFC 3339- Returns:
- Builder
-
datePublished
Specifies the publishing date in RFC 3339.- Parameters:
datePublished
- specifies the publishing date in RFC 3339- Returns:
- Builder
-
dateModified
Specifies the last modified date in RFC 3339.- Parameters:
dateModified
- specifies the last modified date in RFC 3339- Returns:
- Builder
-
dateModified
Specifies the last modified date in RFC 3339.- Parameters:
dateModified
- specifies the last modified date in RFC 3339- Returns:
- Builder
-
author
Adds an author to the feed.- Parameters:
author
- An author of the feed- Returns:
- Builder
-
tag
Associate a tag with the item.- Parameters:
tag
- associate a tag with the item- Returns:
- Builder
-
language
The primary language for the feed in the format specified in RFC 5646.- Parameters:
language
- the primary language for the feed- Returns:
- Builder
-
attachment
@NonNull public @NonNull JsonFeedItem.Builder attachment(@NonNull @NonNull JsonFeedAttachment attachment) Attachments associated with the item.- Parameters:
attachment
- attachments associated with the item- Returns:
- Builder
-
build
-