@NotThreadSafe public class InMemoryClientHttpResponse extends Object implements org.springframework.http.client.ClientHttpResponse, Serializable
| Constructor and Description |
|---|
InMemoryClientHttpResponse(byte[] body,
org.springframework.http.HttpStatus statusCode,
org.springframework.http.HttpHeaders headers) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InMemoryClientHttpResponse |
deepCopy() |
InputStream |
getBody() |
byte[] |
getBodyAsByteArray() |
int |
getRawStatusCode() |
String |
getStatusText() |
public InMemoryClientHttpResponse(byte[] body,
org.springframework.http.HttpStatus statusCode,
org.springframework.http.HttpHeaders headers)
public InputStream getBody()
getBody in interface org.springframework.http.HttpInputMessagepublic byte[] getBodyAsByteArray()
public int getRawStatusCode()
getRawStatusCode in interface org.springframework.http.client.ClientHttpResponsepublic String getStatusText()
getStatusText in interface org.springframework.http.client.ClientHttpResponsepublic void close()
close in interface org.springframework.http.client.ClientHttpResponsepublic InMemoryClientHttpResponse deepCopy()
Copyright © 2014. All rights reserved.