A simple RestClient in java (part of RestFixture)
Latest commit 14bc5ba Jan 14, 2015 @smartrics added travis config
Failed to load latest commit information.
src added utility methods for content type and charset Dec 7, 2012
.gitignore added parent pom for sonarype deployment Sep 26, 2012
.travis.yml added travis config Jan 14, 2015
COPYING Added after decoupling from RestFixture Nov 25, 2008
COPYING.LESSER Added after decoupling from RestFixture Nov 25, 2008
COPYRIGHT Added after decoupling from RestFixture Nov 25, 2008
README.md fixed typo Oct 4, 2012


A Simple Java client for REST

The Rest Client offers a simplified interface to an underlying implementation of an HTTP client, specifically geared to operate REST resources.

Maven dependency



Release: https://oss.sonatype.org/content/repositories/releases/smartrics/restfixture/smartrics-RestClient/

Continuous Integration: http://jenkins.fazend.com:8080/job/RestClient

Maven Site: http://jenkins.fazend.com:8080/job/RestClient/site/index.html

Getting started

The current implementation of '''RestClient''' wraps Apache HttpClient 3.1.

org.apache.commons.httpclient.HttpClient = new org.apache.commons.httpclient.HttpClient();
RestClient client = new RestClientImpl(httpClient);
RestRequest request = new RestRequest().setMethod(RestRequest.Method.Get).setResource("/resource");
RestResponse response = client.execute(request);
String body = response.getBody();
Header h = response.getHeader("Content-Type");
// ...