public class ClientHttpResponseDecorator extends java.lang.Object implements ClientHttpResponse
ClientHttpResponse and delegates all methods to it.
Sub-classes can override specific methods selectively.| Constructor and Description |
|---|
ClientHttpResponseDecorator(ClientHttpResponse delegate) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Flux<DataBuffer> |
getBody()
Return the body of the message as a
Publisher. |
MultiValueMap<java.lang.String,ResponseCookie> |
getCookies()
Return a read-only map of response cookies received from the server.
|
ClientHttpResponse |
getDelegate() |
HttpHeaders |
getHeaders()
Return the headers of this message.
|
int |
getRawStatusCode()
Return the HTTP status code (potentially non-standard and not
resolvable through the
HttpStatus enum) as an integer. |
HttpStatus |
getStatusCode()
Return the HTTP status code of the response.
|
java.lang.String |
toString() |
public ClientHttpResponseDecorator(ClientHttpResponse delegate)
public ClientHttpResponse getDelegate()
public HttpStatus getStatusCode()
ClientHttpResponsegetStatusCode in interface ClientHttpResponseHttpStatus.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<java.lang.String,ResponseCookie> getCookies()
ClientHttpResponsegetCookies in interface ClientHttpResponsepublic reactor.core.publisher.Flux<DataBuffer> getBody()
ReactiveHttpInputMessagePublisher.getBody in interface ReactiveHttpInputMessagepublic java.lang.String toString()
toString in class java.lang.Object