public interface HttpResponse
extends com.netflix.client.IResponse, java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<T> T |
getEntity(java.lang.Class<T> type) |
<T> T |
getEntity(java.lang.reflect.Type type) |
<T> T |
getEntity(com.google.common.reflect.TypeToken<T> type)
Deprecated.
use
getEntity(Type) |
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> |
getHeaders()
Deprecated.
|
HttpHeaders |
getHttpHeaders() |
java.io.InputStream |
getInputStream() |
int |
getStatus()
Get the HTTP status code.
|
java.lang.String |
getStatusLine()
Get the reason phrase of HTTP status
|
boolean |
hasEntity() |
int getStatus()
java.lang.String getStatusLine()
@Deprecated java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> getHeaders()
getHeaders in interface com.netflix.client.IResponsegetHttpHeaders()HttpHeaders getHttpHeaders()
void close()
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.InputStream getInputStream()
boolean hasEntity()
<T> T getEntity(java.lang.Class<T> type)
throws java.lang.Exception
java.lang.Exception<T> T getEntity(java.lang.reflect.Type type)
throws java.lang.Exception
java.lang.Exception@Deprecated
<T> T getEntity(com.google.common.reflect.TypeToken<T> type)
throws java.lang.Exception
getEntity(Type)java.lang.Exception