restfeed-client

Client library for Rest Feed consumers.

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

org.restfeeds
ArtifactId

ArtifactId

restfeed-client
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

restfeed-client
Client library for Rest Feed consumers.
Project URL

Project URL

https://github.com/rest-feeds/rest-feeds
Source Code Management

Source Code Management

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

Download restfeed-client

How to add to project

<!-- 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"]

Dependencies

test (1)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-engine jar 5.5.2

Project Modules

There are no modules declared in this project.

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.

Versions

Version
0.0.2
0.0.1