Package io.micronaut.rss.jsonfeed
Class JsonHub
java.lang.Object
io.micronaut.rss.jsonfeed.JsonHub
Endpoint that can be used to subscribe to real-time notifications from the publisher of this feed.
- Since:
- 2.2.0
- Author:
- Sergio del Amo, mark1626
- See Also:
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull JsonHub.Builder
builder()
static @NonNull JsonHub.Builder
@NonNull String
getType()
Describes the protocol used to talk to the hub.@NonNull String
getUrl()
Url where the hub is present.void
Describes the protocol used to talk to the hub.void
Url where the hub is present.toMap()
-
Field Details
-
KEY_TYPE
- See Also:
-
KEY_URL
- See Also:
-
-
Constructor Details
-
JsonHub
public JsonHub()Constructor.
-
-
Method Details
-
getType
Describes the protocol used to talk to the hub.- Returns:
- type describes the protocol used to talk to the hub
-
setType
Describes the protocol used to talk to the hub.- Parameters:
type
- describes the protocol used to talk to the hub
-
getUrl
Url where the hub is present.- Returns:
- url where the hub is present
-
setUrl
Url where the hub is present.- Parameters:
url
- location where the hub is present
-
toMap
- Returns:
- a Map representation of a JSON Hub.
-
builder
- Returns:
- The builder
-
builder
@NonNull public static @NonNull JsonHub.Builder builder(@NonNull @NonNull String type, @NonNull @NonNull String url) - Parameters:
type
- describes the protocol used to talk to the huburl
- location where the hub is present- Returns:
- The builder
-