public class RibbonApacheHttpResponse extends Object implements com.netflix.client.http.HttpResponse
| Constructor and Description |
|---|
RibbonApacheHttpResponse(org.apache.http.HttpResponse httpResponse,
URI uri) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<T> T |
getEntity(Class<T> type)
Not used.
|
<T> T |
getEntity(Type type)
Not used.
|
<T> T |
getEntity(com.google.common.reflect.TypeToken<T> type)
Not used.
|
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 RibbonApacheHttpResponse(org.apache.http.HttpResponse httpResponse,
URI uri)
public 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 int getStatus()
getStatus in interface com.netflix.client.http.HttpResponsepublic String getStatusLine()
getStatusLine in interface com.netflix.client.http.HttpResponsepublic 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.