Http Client Wrapper

A library to abstract common patterns for building http rest clients.

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

org.sourcelab.http
ArtifactId

ArtifactId

http-client-wrapper
Last Version

Last Version

0.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

Http Client Wrapper
A library to abstract common patterns for building http rest clients.
Project URL

Project URL

https://github.com/SourceLabOrg/http-client-wrapper
Source Code Management

Source Code Management

https://github.com/SourceLabOrg/http-client-wrapper/tree/master

Download http-client-wrapper

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.apache.httpcomponents : httpclient jar 4.5.10
org.slf4j : slf4j-api jar 1.7.29

test (8)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-api jar 5.4.2
org.junit.jupiter : junit-jupiter-engine jar 5.4.2
org.mockito : mockito-core jar 2.28.2
commons-io : commons-io jar 2.6
org.eclipse.jetty : jetty-server jar 9.4.20.v20190813
org.apache.logging.log4j : log4j-api jar 2.12.1
org.apache.logging.log4j : log4j-core jar 2.12.1
org.apache.logging.log4j : log4j-slf4j-impl jar 2.12.1

Project Modules

There are no modules declared in this project.

Http-Client-Wrapper Java REST Client Abstraction Library

What is it?

A collection of common patterns to build REST Client libraries on top of. It attempts to provide an abstracted interface for building REST clients. Included is an implementation of interfaces using HttpComponents.

How to use this library

This client library is released on Maven Central. Add a new dependency to your project's POM file:

<dependency>
    <groupId>org.sourcelab</groupId>
    <artifactId>http-client-wrapper</artifactId>
    <version>0.1.0</version>
</dependency>

Contributing

Found a bug? Think you've got an awesome feature you want to add? We welcome contributions!

Submitting a Contribution

  1. Search for an existing issue. If none exists, create a new issue so that other contributors can keep track of what you are trying to add/fix and offer suggestions (or let you know if there is already an effort in progress). Be sure to clearly state the problem you are trying to solve and an explanation of why you want to use the strategy you're proposing to solve it.
  2. Fork this repository on GitHub and create a branch for your feature.
  3. Clone your fork and branch to your local machine.
  4. Commit changes to your branch.
  5. Push your work up to GitHub.
  6. Submit a pull request so that we can review your changes.

Make sure that you rebase your branch off of master before opening a new pull request. We might also ask you to rebase it if master changes after you open your pull request.

Acceptance Criteria

We love contributions, but it's important that your pull request adhere to some of the standards we maintain in this repository.

  • All tests must be passing!
  • All code changes require tests!
  • All code changes must be consistent with our checkstyle rules.
  • Great inline comments.

Other Notes

Releasing

Steps for proper release:

  • Update release version: mvn versions:set -DnewVersion=X.Y.Z
  • Validate and then commit version: mvn versions:commit
  • Update CHANGELOG and README files.
  • Merge to master.
  • Deploy to Maven Central: mvn clean deploy -P release
  • Create release on Github project.

Changelog

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

View Changelog

org.sourcelab.http

SourceLab.org

Versions

Version
0.2.1
0.2.0
0.1.1
0.1.0