public static final class JsonFeed.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
JsonFeed.Builder |
author(JsonFeedAuthor author)
Adds an author to the feed.
|
JsonFeed |
build() |
JsonFeed.Builder |
description(java.lang.String description)
Detail on what the feed is about.
|
JsonFeed.Builder |
expired(java.lang.Boolean expired)
Says whether or not the feed is finished — that is, whether or not it will ever update
again.
|
JsonFeed.Builder |
favicon(java.lang.String favicon)
The URL of an image for the feed suitable to be used in a source list.
|
JsonFeed.Builder |
feedUrl(java.lang.String feedUrl)
The URL of the feed, and serves as the unique identifier for the feed.
|
JsonFeed.Builder |
homePageUrl(java.lang.String homePageUrl)
The URL of the resource that the feed describes.
|
JsonFeed.Builder |
hub(JsonHub hub)
Describes endpoints that can be used to subscribe to real-time notifications from the
publisher of this feed.
|
JsonFeed.Builder |
icon(java.lang.String icon)
The URL of an image for the feed suitable to be used in a timeline, much the way an
avatar might be used.
|
JsonFeed.Builder |
item(JsonFeedItem item)
Content of the feed.
|
JsonFeed.Builder |
items(java.util.List<JsonFeedItem> items) |
JsonFeed.Builder |
language(RssLanguage language)
The primary language for the feed in the format specified in RFC 5646.
|
JsonFeed.Builder |
language(java.lang.String language)
The primary language for the feed in the format specified in RFC 5646.
|
JsonFeed.Builder |
nextUrl(java.lang.String nextURL)
The URL of a feed that provides the next n items, where n is determined by the publisher.
|
JsonFeed.Builder |
title(java.lang.String title)
The name of the feed, which will often correspond to the name of the website.
|
JsonFeed.Builder |
userComment(java.lang.String userComment)
Description of the purpose of the feed.
|
JsonFeed.Builder |
version(java.lang.String version) |
@NonNull public JsonFeed build()
@NonNull public JsonFeed.Builder version(@NonNull java.lang.String version)
@NonNull public JsonFeed.Builder title(@NonNull java.lang.String title)
title
- the name of the feed@NonNull public JsonFeed.Builder homePageUrl(@NonNull java.lang.String homePageUrl)
homePageUrl
- The URL of the resource that the feed describes@NonNull public JsonFeed.Builder feedUrl(@NonNull java.lang.String feedUrl)
feedUrl
- the URL of the feed, and serves as the unique identifier for the feed@NonNull public JsonFeed.Builder description(@NonNull java.lang.String description)
description
- detail on what the feed is about@NonNull public JsonFeed.Builder userComment(@NonNull java.lang.String userComment)
userComment
- description of the purpose of the feed.@NonNull public JsonFeed.Builder nextUrl(@NonNull java.lang.String nextURL)
nextURL
- the URL of a feed that provides the next n items@NonNull public JsonFeed.Builder icon(@NonNull java.lang.String icon)
icon
- the URL of an image for the feed suitable to be used in a timeline@NonNull public JsonFeed.Builder favicon(@NonNull java.lang.String favicon)
favicon
- the URL of an image for the feed suitable to be used in a source list@NonNull public JsonFeed.Builder item(@NonNull JsonFeedItem item)
item
- content of the feed@NonNull public JsonFeed.Builder author(@NonNull JsonFeedAuthor author)
author
- An author of the feed@NonNull public JsonFeed.Builder language(@NonNull RssLanguage language)
language
- the primary language for the feed@NonNull public JsonFeed.Builder language(@NonNull java.lang.String language)
language
- the primary language for the feed@NonNull public JsonFeed.Builder expired(@NonNull java.lang.Boolean expired)
expired
- says whether or not the feed is finished@NonNull public JsonFeed.Builder hub(@NonNull JsonHub hub)
hub
- Describes endpoints that can be used to subscribe to real-time notifications@NonNull public JsonFeed.Builder items(@NonNull java.util.List<JsonFeedItem> items)
items
- Feed items