Package org.jclouds.rest
Interface HttpClient
- 
- All Superinterfaces:
 AutoCloseable,Closeable
public interface HttpClient extends Closeable
Simple client 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandelete(URI location)booleanexists(URI location)InputStreamget(URI location)HttpResponseinvoke(HttpRequest request)Stringpost(URI location, Payload payload)Stringput(URI location, Payload payload) 
 - 
 
- 
- 
Method Detail
- 
exists
@HEAD boolean exists(URI location)
- See Also:
 exists(java.net.URI)
 
- 
get
@GET InputStream get(URI location)
- Returns:
 - null if the resource didn't exist.
 
 
- 
invoke
HttpResponse invoke(HttpRequest request)
- Parameters:
 request-- Returns:
 - response, but make sure you consume its content.
 
 
- 
delete
@DELETE boolean delete(URI location)
- Returns:
 - false if the resource didn't exist.
 
 
 - 
 
 -