|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HttpResponse
HTTP response information resulting from some HTTP operation
Method Summary | |
---|---|
void |
close()
Releases the underlying the HTTP connection when the response is streamed |
byte[] |
getBody()
The HTTP response body or null if isStreamed() |
String |
getBodyAsString()
|
String |
getBucket()
The target object's bucket |
Map<String,String> |
getHttpHeaders()
The HTTP response headers. |
org.apache.http.client.methods.HttpRequestBase |
getHttpMethod()
The actual HttpRequestBase used to make the HTTP request. |
org.apache.http.HttpResponse |
getHttpResponse()
|
String |
getKey()
The target object's key or null if bucket is target |
int |
getStatusCode()
Resulting status code from the HTTP request. |
InputStream |
getStream()
The HTTP response body as an input stream if isStreamed(); null otherwise |
boolean |
isError()
Whether the HTTP request returned a 4xx or 5xx response |
boolean |
isStreamed()
Whether the response body is available as an input stream |
boolean |
isSuccess()
Whether the HTTP response is considered a success. |
Method Detail |
---|
String getBucket()
String getKey()
int getStatusCode()
Map<String,String> getHttpHeaders()
byte[] getBody()
String getBodyAsString()
InputStream getStream()
boolean isStreamed()
org.apache.http.client.methods.HttpRequestBase getHttpMethod()
HttpRequestBase
used to make the HTTP request. Most of
the data here can be retrieved more simply using methods in this class.
The method will already be in a finished state.
boolean isSuccess()
boolean isError()
void close()
org.apache.http.HttpResponse getHttpResponse()
HttpResponse
returned by http client
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |