public class MockClientHttpResponse extends Object implements ClientHttpResponse
ClientHttpResponse.| Constructor and Description | 
|---|
| MockClientHttpResponse(HttpStatus status) | 
| MockClientHttpResponse(int status) | 
| Modifier and Type | Method and Description | 
|---|---|
| reactor.core.publisher.Flux<DataBuffer> | getBody()Return the body of the message as a  Publisher. | 
| reactor.core.publisher.Mono<String> | getBodyAsString()Return the response body aggregated and converted to a String using the
 charset of the Content-Type response or otherwise as "UTF-8". | 
| MultiValueMap<String,ResponseCookie> | getCookies()Return a read-only map of response cookies received from the server. | 
| HttpHeaders | getHeaders()Return the headers of this message. | 
| int | getRawStatusCode()Return the HTTP status code (potentially non-standard and not
 resolvable through the  HttpStatusenum) as an integer. | 
| HttpStatus | getStatusCode()Return the HTTP status code as an  HttpStatusenum value. | 
| void | setBody(org.reactivestreams.Publisher<DataBuffer> body) | 
| void | setBody(String body) | 
| void | setBody(String body,
       Charset charset) | 
| String | toString() | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIdpublic MockClientHttpResponse(HttpStatus status)
public MockClientHttpResponse(int status)
public HttpStatus getStatusCode()
ClientHttpResponseHttpStatus enum value.getStatusCode in interface ClientHttpResponsenull)HttpStatus.valueOf(int)public int getRawStatusCode()
ClientHttpResponseHttpStatus enum) as an integer.getRawStatusCode in interface ClientHttpResponseClientHttpResponse.getStatusCode(), 
HttpStatus.resolve(int)public HttpHeaders getHeaders()
HttpMessagegetHeaders in interface HttpMessagenull)public MultiValueMap<String,ResponseCookie> getCookies()
ClientHttpResponsegetCookies in interface ClientHttpResponsepublic void setBody(org.reactivestreams.Publisher<DataBuffer> body)
public void setBody(String body)
public reactor.core.publisher.Flux<DataBuffer> getBody()
ReactiveHttpInputMessagePublisher.getBody in interface ReactiveHttpInputMessagepublic reactor.core.publisher.Mono<String> getBodyAsString()