org.codegist.crest
Interface RestService

All Known Implementing Classes:
DefaultRestService, HttpClientRestService

public interface RestService

Author:
Laurent Gilles (laurent.gilles@codegist.org)

Method Summary
 HttpResponse exec(HttpRequest request)
          Execute the given request.
 

Method Detail

exec

HttpResponse exec(HttpRequest request)
                  throws HttpException
Execute the given request.

Parameters:
request - Request to fire
Returns:
The response.
Throws:
HttpException - For any problem occuring during the http transaction, and when response status code is not HTTP OK 200


Copyright © 2011. All Rights Reserved.