public static class RetryLoadBalancerInterceptor.ClientHttpResponseWrapper extends Object implements org.springframework.http.client.ClientHttpResponse
| Constructor and Description |
|---|
ClientHttpResponseWrapper(org.springframework.http.client.ClientHttpResponse response) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InputStream |
getBody() |
org.springframework.http.HttpHeaders |
getHeaders() |
int |
getRawStatusCode() |
org.springframework.http.HttpStatus |
getStatusCode() |
String |
getStatusText() |
void |
init() |
public ClientHttpResponseWrapper(org.springframework.http.client.ClientHttpResponse response)
public void init()
throws IOException
IOExceptionpublic org.springframework.http.HttpStatus getStatusCode()
throws IOException
getStatusCode in interface org.springframework.http.client.ClientHttpResponseIOExceptionpublic int getRawStatusCode()
throws IOException
getRawStatusCode in interface org.springframework.http.client.ClientHttpResponseIOExceptionpublic String getStatusText() throws IOException
getStatusText in interface org.springframework.http.client.ClientHttpResponseIOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface org.springframework.http.client.ClientHttpResponsepublic InputStream getBody() throws IOException
getBody in interface org.springframework.http.HttpInputMessageIOExceptionpublic org.springframework.http.HttpHeaders getHeaders()
getHeaders in interface org.springframework.http.HttpMessageCopyright © 2018 Pivotal Software, Inc.. All rights reserved.