Package io.micronaut.rss.jsonfeed
Class JsonFeed.Builder
java.lang.Object
io.micronaut.rss.jsonfeed.JsonFeed.Builder
- Enclosing class:
- JsonFeed
JSON Feed Builder.
-
Method Summary
Modifier and TypeMethodDescription@NonNull JsonFeed.Builderauthor(@NonNull JsonFeedAuthor author) Adds an author to the feed.@NonNull JsonFeedbuild()@NonNull JsonFeed.Builderdescription(@NonNull String description) Detail on what the feed is about.@NonNull JsonFeed.BuilderSays whether or not the feed is finished — that is, whether or not it will ever update again.@NonNull JsonFeed.BuilderThe URL of an image for the feed suitable to be used in a source list.@NonNull JsonFeed.BuilderThe URL of the feed, and serves as the unique identifier for the feed.@NonNull JsonFeed.BuilderhomePageUrl(@NonNull String homePageUrl) The URL of the resource that the feed describes.@NonNull JsonFeed.BuilderDescribes endpoints that can be used to subscribe to real-time notifications from the publisher of this feed.@NonNull JsonFeed.BuilderThe URL of an image for the feed suitable to be used in a timeline, much the way an avatar might be used.@NonNull JsonFeed.Builderitem(@NonNull JsonFeedItem item) Content of the feed.@NonNull JsonFeed.Builderitems(@NonNull List<JsonFeedItem> items) @NonNull JsonFeed.Builderlanguage(@NonNull RssLanguage language) The primary language for the feed in the format specified in RFC 5646.@NonNull JsonFeed.BuilderThe primary language for the feed in the format specified in RFC 5646.@NonNull JsonFeed.BuilderThe URL of a feed that provides the next n items, where n is determined by the publisher.@NonNull JsonFeed.BuilderThe name of the feed, which will often correspond to the name of the website.@NonNull JsonFeed.BuilderuserComment(@NonNull String userComment) Description of the purpose of the feed.@NonNull JsonFeed.Builder
-
Method Details
-
build
-
version
-
title
The name of the feed, which will often correspond to the name of the website.- Parameters:
title- the name of the feed- Returns:
- Builder
-
homePageUrl
The URL of the resource that the feed describes. This resource may or may not actually be a “home” page, but it should be an HTML page- Parameters:
homePageUrl- The URL of the resource that the feed describes- Returns:
- Builder
-
feedUrl
The URL of the feed, and serves as the unique identifier for the feed.- Parameters:
feedUrl- the URL of the feed, and serves as the unique identifier for the feed- Returns:
- Builder
-
description
Detail on what the feed is about. A feed reader may display this text.- Parameters:
description- detail on what the feed is about- Returns:
- Builder
-
userComment
Description of the purpose of the feed. This is for the use of people looking at the raw JSON, and should be ignored by feed readers- Parameters:
userComment- description of the purpose of the feed.- Returns:
- Builder
-
nextUrl
The URL of a feed that provides the next n items, where n is determined by the publisher. This allows for pagination, but with the expectation that reader software is not required to use it and probably won’t use it very often- Parameters:
nextURL- the URL of a feed that provides the next n items- Returns:
- Builder
-
icon
The URL of an image for the feed suitable to be used in a timeline, much the way an avatar might be used. It should be square and relatively large — such as 512 x 512 pixels- Parameters:
icon- the URL of an image for the feed suitable to be used in a timeline- Returns:
- Builder
-
favicon
The URL of an image for the feed suitable to be used in a source list. It should be square and relatively small, but not smaller than 64 x 64 pixels- Parameters:
favicon- the URL of an image for the feed suitable to be used in a source list- Returns:
- Builder
-
item
Content of the feed.- Parameters:
item- content of the feed- Returns:
- Builder
-
author
Adds an author to the feed.- Parameters:
author- An author of the feed- 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
-
language
The primary language for the feed in the format specified in RFC 5646.- Parameters:
language- the primary language for the feed- Returns:
- Builder
-
expired
Says whether or not the feed is finished — that is, whether or not it will ever update again.- Parameters:
expired- says whether or not the feed is finished- Returns:
- Builder
-
hub
Describes endpoints that can be used to subscribe to real-time notifications from the publisher of this feed.- Parameters:
hub- Describes endpoints that can be used to subscribe to real-time notifications- Returns:
- Builder
-
items
- Parameters:
items- Feed items- Returns:
- The Builder.
-