rest-feed-client

Client library for Rest Feed consumers.

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

org.restfeeds
ArtifactId

ArtifactId

rest-feed-client
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

rest-feed-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 rest-feed-client

How to add to project

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

Dependencies

provided (1)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-web jar 2.2.2.RELEASE

test (1)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-test jar 2.2.2.RELEASE

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.1