public class SpringClientHttpRamlResponse extends Object implements org.springframework.http.client.ClientHttpResponse, RamlResponse
| Constructor and Description |
|---|
SpringClientHttpRamlResponse(org.springframework.http.client.ClientHttpResponse response) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InputStream |
getBody() |
byte[] |
getContent() |
String |
getContentType() |
org.springframework.http.HttpHeaders |
getHeaders() |
Values |
getHeaderValues() |
int |
getRawStatusCode() |
int |
getStatus() |
org.springframework.http.HttpStatus |
getStatusCode() |
String |
getStatusText() |
public SpringClientHttpRamlResponse(org.springframework.http.client.ClientHttpResponse response)
public int getStatus()
getStatus in interface RamlResponsepublic String getContentType()
getContentType in interface RamlMessagepublic byte[] getContent()
getContent in interface RamlMessagepublic 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.HttpMessagepublic Values getHeaderValues()
getHeaderValues in interface RamlMessageCopyright © 2014–2017. All rights reserved.