public class OkHttpRibbonResponse extends Object implements com.netflix.client.http.HttpResponse
| Constructor and Description |
|---|
OkHttpRibbonResponse(okhttp3.Response response,
URI uri) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<T> T |
getEntity(Class<T> type) |
<T> T |
getEntity(Type type) |
<T> T |
getEntity(com.google.common.reflect.TypeToken<T> type) |
Map<String,Collection<String>> |
getHeaders() |
com.netflix.client.http.HttpHeaders |
getHttpHeaders() |
InputStream |
getInputStream() |
Object |
getPayload() |
URI |
getRequestedURI() |
int |
getStatus() |
String |
getStatusLine() |
boolean |
hasEntity() |
boolean |
hasPayload() |
boolean |
isSuccess() |
public OkHttpRibbonResponse(okhttp3.Response response,
URI uri)
public int getStatus()
getStatus in interface com.netflix.client.http.HttpResponsepublic String getStatusLine()
getStatusLine in interface com.netflix.client.http.HttpResponsepublic Object getPayload() throws com.netflix.client.ClientException
getPayload in interface com.netflix.client.IResponsecom.netflix.client.ClientExceptionpublic boolean hasPayload()
hasPayload in interface com.netflix.client.IResponsepublic boolean isSuccess()
isSuccess in interface com.netflix.client.IResponsepublic URI getRequestedURI()
getRequestedURI in interface com.netflix.client.IResponsepublic Map<String,Collection<String>> getHeaders()
getHeaders in interface com.netflix.client.http.HttpResponsegetHeaders in interface com.netflix.client.IResponsepublic com.netflix.client.http.HttpHeaders getHttpHeaders()
getHttpHeaders in interface com.netflix.client.http.HttpResponsepublic void close()
close in interface com.netflix.client.http.HttpResponseclose in interface Closeableclose in interface AutoCloseablepublic InputStream getInputStream()
getInputStream in interface com.netflix.client.http.HttpResponsepublic boolean hasEntity()
hasEntity in interface com.netflix.client.http.HttpResponsepublic <T> T getEntity(Class<T> type) throws Exception
getEntity in interface com.netflix.client.http.HttpResponseExceptionpublic <T> T getEntity(Type type) throws Exception
getEntity in interface com.netflix.client.http.HttpResponseExceptionCopyright © 2021 Pivotal Software, Inc.. All rights reserved.