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.Builder
author
(@NonNull JsonFeedAuthor author) Adds an author to the feed.@NonNull JsonFeed
build()
@NonNull JsonFeed.Builder
description
(@NonNull String description) Detail on what the feed is about.@NonNull JsonFeed.Builder
Says whether or not the feed is finished — that is, whether or not it will ever update again.@NonNull JsonFeed.Builder
The URL of an image for the feed suitable to be used in a source list.@NonNull JsonFeed.Builder
The URL of the feed, and serves as the unique identifier for the feed.@NonNull JsonFeed.Builder
homePageUrl
(@NonNull String homePageUrl) The URL of the resource that the feed describes.@NonNull JsonFeed.Builder
Describes endpoints that can be used to subscribe to real-time notifications from the publisher of this feed.@NonNull JsonFeed.Builder
The URL of an image for the feed suitable to be used in a timeline, much the way an avatar might be used.@NonNull JsonFeed.Builder
item
(@NonNull JsonFeedItem item) Content of the feed.@NonNull JsonFeed.Builder
items
(@NonNull List<JsonFeedItem> items) @NonNull JsonFeed.Builder
language
(@NonNull RssLanguage language) The primary language for the feed in the format specified in RFC 5646.@NonNull JsonFeed.Builder
The primary language for the feed in the format specified in RFC 5646.@NonNull JsonFeed.Builder
The URL of a feed that provides the next n items, where n is determined by the publisher.@NonNull JsonFeed.Builder
The name of the feed, which will often correspond to the name of the website.@NonNull JsonFeed.Builder
userComment
(@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.
-