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 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
-
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.
-
-