Interface JsonFeedProvider


public interface JsonFeedProvider
Defines a provider of a JSON Feed.
Since:
1.0
Author:
Sergio del Amo, Graeme Rocher
  • Method Summary

    Modifier and Type
    Method
    Description
    default @NonNull org.reactivestreams.Publisher<JsonFeed>
    Retrieves a JSON Feed.
    @NonNull org.reactivestreams.Publisher<JsonFeed>
    feed(@Nullable Integer maxNumberOfItems, @Nullable Integer pageNumber)
    Retrieves a JSON Feed.
  • Method Details

    • feed

      @NonNull @SingleResult @NonNull org.reactivestreams.Publisher<JsonFeed> feed(@Nullable @Nullable Integer maxNumberOfItems, @Nullable @Nullable Integer pageNumber)
      Retrieves a JSON Feed. You can use the paramters `maxNumberOfItems` and `pageNumber` in combination with JsonFeed.getNextURL()
      Parameters:
      maxNumberOfItems - desired max number of items in the the JSON Feed
      pageNumber - Page number to allow pagination in the JSON Feed Items.
      Returns:
      A Json Feed
    • feed

      @NonNull @SingleResult default @NonNull org.reactivestreams.Publisher<JsonFeed> feed()
      Retrieves a JSON Feed.
      Returns:
      A Json Feed