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 SummaryModifier 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
 
- 
urlThe 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
 
- 
externalUrlThe URL of a page elsewhere. This is especially useful for linkblogs- Parameters:
- externalUrl- the URL of a page
- Returns:
- Builder
 
- 
titleTitle of the item in feed.- Parameters:
- title- title of the item in feed
- Returns:
- Builder
 
- 
contentHtmlThe html content of the item in the feed.- Parameters:
- contentHtml- the html content of the item in the feed
- Returns:
- Builder
 
- 
contentTextThe text content of the item in the feed.- Parameters:
- contentText- the text content of the item in the feed
- Returns:
- Builder
 
- 
summaryPlain text sentence or two describing the item.- Parameters:
- summary- plain text sentence or two describing the item
- Returns:
- Builder
 
- 
imageThe URL of the main image for the item.- Parameters:
- image- the URL of the main image for the item
- Returns:
- Builder
 
- 
bannerImageThe URL of an image to use as a banner.- Parameters:
- bannerImage- the URL of an image to use as a banner
- Returns:
- Builder
 
- 
datePublishedSpecifies the publishing date in RFC 3339.- Parameters:
- datePublished- specifies the publishing date in RFC 3339
- Returns:
- Builder
 
- 
datePublishedSpecifies the publishing date in RFC 3339.- Parameters:
- datePublished- specifies the publishing date in RFC 3339
- Returns:
- Builder
 
- 
dateModifiedSpecifies the last modified date in RFC 3339.- Parameters:
- dateModified- specifies the last modified date in RFC 3339
- Returns:
- Builder
 
- 
dateModifiedSpecifies the last modified date in RFC 3339.- Parameters:
- dateModified- specifies the last modified date in RFC 3339
- Returns:
- Builder
 
- 
authorAdds an author to the feed.- Parameters:
- author- An author of the feed
- Returns:
- Builder
 
- 
tagAssociate a tag with the item.- Parameters:
- tag- associate a tag with the item
- Returns:
- Builder
 
- 
languageThe 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
 
-