org.jclouds.rest
Interface HttpClient


public interface HttpClient

Simple client

Author:
Adrian Cole

Method Summary
 boolean delete(URI location)
           
 boolean exists(URI location)
           
 InputStream get(URI location)
           
 HttpResponse invoke(HttpRequest request)
           
 String post(URI location, Payload payload)
           
 String put(URI location, Payload payload)
           
 

Method Detail

invoke

HttpResponse invoke(HttpRequest request)
Parameters:
request -
Returns:
response, but make sure you consume its content.

put

String put(URI location,
           Payload payload)
Returns:
eTag

post

String post(URI location,
            Payload payload)
Returns:
eTag

exists

boolean exists(URI location)

get

InputStream get(URI location)
Returns:
null if the resource didn't exist.

delete

boolean delete(URI location)
Returns:
false if the resource didn't exist.


Copyright © 2009-2011 jclouds. All Rights Reserved.