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.IResponse
com.netflix.client.ClientException
public boolean hasPayload()
hasPayload
in interface com.netflix.client.IResponse
public boolean isSuccess()
isSuccess
in interface com.netflix.client.IResponse
public URI getRequestedURI()
getRequestedURI
in interface com.netflix.client.IResponse
public int getStatus()
getStatus
in interface com.netflix.client.http.HttpResponse
public String getStatusLine()
getStatusLine
in interface com.netflix.client.http.HttpResponse
public Map<String,Collection<String>> getHeaders()
getHeaders
in interface com.netflix.client.http.HttpResponse
getHeaders
in interface com.netflix.client.IResponse
public com.netflix.client.http.HttpHeaders getHttpHeaders()
getHttpHeaders
in interface com.netflix.client.http.HttpResponse
public void close()
close
in interface com.netflix.client.http.HttpResponse
close
in interface Closeable
close
in interface AutoCloseable
public InputStream getInputStream()
getInputStream
in interface com.netflix.client.http.HttpResponse
public boolean hasEntity()
hasEntity
in interface com.netflix.client.http.HttpResponse
public <T> T getEntity(Class<T> type) throws Exception
getEntity
in interface com.netflix.client.http.HttpResponse
Exception
public <T> T getEntity(Type type) throws Exception
getEntity
in interface com.netflix.client.http.HttpResponse
Exception
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.