restfeed-client

Client library for Rest Feed consumers.

Лицензия

Лицензия

Категории

Категории

CLI Взаимодействие с пользователем
Группа

Группа

org.restfeeds
Идентификатор

Идентификатор

restfeed-client
Последняя версия

Последняя версия

0.0.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

restfeed-client
Client library for Rest Feed consumers.
Ссылка на сайт

Ссылка на сайт

https://github.com/rest-feeds/rest-feeds
Система контроля версий

Система контроля версий

http://github.com/rest-feeds/restfeed-client-java/tree/master

Скачать restfeed-client

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.restfeeds/restfeed-client/ -->
<dependency>
    <groupId>org.restfeeds</groupId>
    <artifactId>restfeed-client</artifactId>
    <version>0.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.restfeeds/restfeed-client/
implementation 'org.restfeeds:restfeed-client:0.0.2'
// https://jarcasting.com/artifacts/org.restfeeds/restfeed-client/
implementation ("org.restfeeds:restfeed-client:0.0.2")
'org.restfeeds:restfeed-client:jar:0.0.2'
<dependency org="org.restfeeds" name="restfeed-client" rev="0.0.2">
  <artifact name="restfeed-client" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.restfeeds', module='restfeed-client', version='0.0.2')
)
libraryDependencies += "org.restfeeds" % "restfeed-client" % "0.0.2"
[org.restfeeds/restfeed-client "0.0.2"]

Зависимости

test (1)

Идентификатор библиотеки Тип Версия
org.junit.jupiter : junit-jupiter-engine jar 5.5.2

Модули Проекта

Данный проект не имеет модулей.

restfeed-client-java

Maven Central

Core client library to consume REST Feeds.

Written in pure Java without transitive dependencies.

Spring Boot

Use this library when using Spring Boot:

Getting Started

Follow the Getting Started section in the Spring implementation.

Components

FeedReader

The FeedReader is the core class that polls the feed endpoint for new items in an endless loop.

Call the read() method to start reading the feed.

When shutting down the application, call the stop() method to end the endless loop.

FeedItemConsumer

Implement FeedItemConsumer interface to handle feed items.

NextLinkRepository

Provide an implementation how the next link is stored. The save() method is called directly after a feed item was consumed.

Typically, the NextLinkRepository is implemented as a SQL or NoSQL database.

An InMemoryNextLinkRepository is provided for testing.

FeedReaderRestClient

Implement this interface to perform the HTTP connection to the feed endpoint, authenticate, negotiate the content type, and do the unmarshalling.

Версии библиотеки

Версия
0.0.2
0.0.1