Well Rested Client

A nice and easy java http client wrapper built on top of apache httpclient

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

com.lindar
ArtifactId

ArtifactId

well-rested-client
Last Version

Last Version

1.7.3
Release Date

Release Date

Type

Type

jar
Description

Description

Well Rested Client
A nice and easy java http client wrapper built on top of apache httpclient
Project URL

Project URL

http://www.lindar.com/
Source Code Management

Source Code Management

https://github.com/lindar-open/well-rested-client.git

Download well-rested-client

How to add to project

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

Dependencies

compile (10)

Group / Artifact Type Version
org.apache.httpcomponents : httpclient jar 4.5.11
org.apache.httpcomponents : httpmime jar 4.5.11
org.apache.httpcomponents : fluent-hc jar 4.5.11
org.apache.commons : commons-lang3 jar 3.9
log4j : log4j jar 1.2.17
org.slf4j : slf4j-api jar 1.7.30
org.slf4j : slf4j-log4j12 jar 1.7.30
org.projectlombok : lombok jar 1.18.12
com.google.code.gson : gson jar 2.8.6
com.fatboyindustrial.gson-javatime-serialisers : gson-javatime-serialisers jar 1.1.1

test (3)

Group / Artifact Type Version
junit : junit jar 4.13
org.mockito : mockito-core jar 2.28.2
com.github.tomakehurst : wiremock jar 2.19.0

Project Modules

There are no modules declared in this project.

well-rested-client

Want a nice rest client that just works without too much headache? Try this well rested and ready to go client built on top of apache http client

Check out the Releases page for detailed info about each release.

Examples:

GET Request:

ResponseVO serverResponse = WellRestedRequest.builder().url(url).build().get().submit();

The ResponseVO class contains the status code returned by the server and the server response returned as String.

POST Request:

How to post a json string directly:

ResponseVO serverResponse = WellRestedRequest.builder().url(url).build().post().jsonContent(jsonString).submit();

How to post an object as json:

ResponseVO serverResponse = WellRestedRequest.builder().url(url).build().post().jsonContent(myObj).submit();

How to post an xml string directly:

ResponseVO serverResponse = WellRestedRequest.builder().url(url).build().post().xmlContent(xmlString).submit();

More examples to come...

Usage:

<dependency>
    <groupId>com.lindar</groupId>
    <artifactId>well-rested-client</artifactId>
    <version>1.4.1</version>
</dependency>
com.lindar

Lindar Media

All our open-source projects in one place

Versions

Version
1.7.3
1.7.2
1.7.1
1.7.0
1.6.1
1.6.0
1.5.8
1.5.7
1.5.6
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.1
1.4.0
1.3.0
1.2.1
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0