public class TraceHttpResponse extends Object implements org.springframework.http.client.ClientHttpResponse
ClientHttpResponse that upon
closing the response
closes the span| Constructor and Description |
|---|
TraceHttpResponse(TraceRestTemplateInterceptor interceptor,
org.springframework.http.client.ClientHttpResponse delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InputStream |
getBody() |
org.springframework.http.HttpHeaders |
getHeaders() |
int |
getRawStatusCode() |
org.springframework.http.HttpStatus |
getStatusCode() |
String |
getStatusText() |
public TraceHttpResponse(TraceRestTemplateInterceptor interceptor, org.springframework.http.client.ClientHttpResponse delegate)
public org.springframework.http.HttpHeaders getHeaders()
getHeaders in interface org.springframework.http.HttpMessagepublic InputStream getBody() throws IOException
getBody in interface org.springframework.http.HttpInputMessageIOExceptionpublic 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.ClientHttpResponseCopyright © 2017 Pivotal Software, Inc.. All rights reserved.