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.Builderattachment(@NonNull JsonFeedAttachment attachment) Attachments associated with the item.@NonNull JsonFeedItem.Builderauthor(JsonFeedAuthor author) Adds an author to the feed.@NonNull JsonFeedItem.BuilderbannerImage(String bannerImage) The URL of an image to use as a banner.@NonNull JsonFeedItembuild()@NonNull JsonFeedItem.BuildercontentHtml(String contentHtml) The html content of the item in the feed.@NonNull JsonFeedItem.BuildercontentText(String contentText) The text content of the item in the feed.@NonNull JsonFeedItem.BuilderdateModified(String dateModified) Specifies the last modified date in RFC 3339.@NonNull JsonFeedItem.BuilderdateModified(ZonedDateTime dateModified) Specifies the last modified date in RFC 3339.@NonNull JsonFeedItem.BuilderdatePublished(String datePublished) Specifies the publishing date in RFC 3339.@NonNull JsonFeedItem.BuilderdatePublished(ZonedDateTime datePublished) Specifies the publishing date in RFC 3339.@NonNull JsonFeedItem.BuilderexternalUrl(String externalUrl) The URL of a page elsewhere.@NonNull JsonFeedItem.Builder@NonNull JsonFeedItem.BuilderThe URL of the main image for the item.@NonNull JsonFeedItem.Builderlanguage(@NonNull RssLanguage language) The primary language for the feed in the format specified in RFC 5646.@NonNull JsonFeedItem.BuilderPlain text sentence or two describing the item.@NonNull JsonFeedItem.BuilderAssociate a tag with the item.@NonNull JsonFeedItem.BuilderTitle of the item in feed.@NonNull JsonFeedItem.BuilderThe 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
-