public interface HttpResponse<T>
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the connection.
|
java.io.InputStream |
getContent()
Returns the HTTP response as
InputStream object. |
java.util.Map<java.lang.String,java.lang.String> |
getHeaders() |
HttpRequest<T> |
getRequest() |
java.lang.String |
getStatus()
Returns the HTTP response status message.
|
int |
getStatusCode()
Returns the HTTP response status code.
|
T |
getUnderlying() |
int getStatusCode()
throws java.io.IOException
java.io.IOException - if an error occurs during retrieving status code.java.lang.String getStatus()
throws java.io.IOException
java.io.IOException - if an error occurs during retrieving status text.java.io.InputStream getContent()
throws java.io.IOException
InputStream object.InputStream object.java.io.IOException - if an error occurs during getting content.T getUnderlying()
HttpRequest<T> getRequest()
java.util.Map<java.lang.String,java.lang.String> getHeaders()
void close()