Class JsonHub

java.lang.Object
io.micronaut.rss.jsonfeed.JsonHub

@Introspected public class JsonHub extends Object
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:
  • Field Details

  • Constructor Details

    • JsonHub

      public JsonHub()
      Constructor.
  • Method Details

    • getType

      @NonNull public @NonNull String getType()
      Describes the protocol used to talk to the hub.
      Returns:
      type describes the protocol used to talk to the hub
    • setType

      public void setType(@NonNull @NonNull String type)
      Describes the protocol used to talk to the hub.
      Parameters:
      type - describes the protocol used to talk to the hub
    • getUrl

      @NonNull public @NonNull String getUrl()
      Url where the hub is present.
      Returns:
      url where the hub is present
    • setUrl

      public void setUrl(@NonNull @NonNull String url)
      Url where the hub is present.
      Parameters:
      url - location where the hub is present
    • toMap

      @NonNull public @NonNull Map<String,Object> toMap()
      Returns:
      a Map representation of a JSON Hub.
    • builder

      @NonNull public static @NonNull JsonHub.Builder 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 hub
      url - location where the hub is present
      Returns:
      The builder