public class ClientHttpResponseDecorator extends java.lang.Object implements ClientHttpResponse
ClientHttpResponse
and delegates all methods to it.
Sub-classes can override specific methods selectively.Modifier and Type | Field and Description |
---|---|
private ClientHttpResponse |
delegate |
Constructor and Description |
---|
ClientHttpResponseDecorator(ClientHttpResponse delegate) |
Modifier and Type | Method and Description |
---|---|
<any> |
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.
|
HttpStatus |
getStatusCode() |
java.lang.String |
toString() |
private final ClientHttpResponse delegate
public ClientHttpResponseDecorator(ClientHttpResponse delegate)
public ClientHttpResponse getDelegate()
public HttpStatus getStatusCode()
getStatusCode
in interface ClientHttpResponse
HttpStatus
enum valuepublic HttpHeaders getHeaders()
HttpMessage
getHeaders
in interface HttpMessage
null
)public MultiValueMap<java.lang.String,ResponseCookie> getCookies()
ClientHttpResponse
getCookies
in interface ClientHttpResponse
public <any> getBody()
ReactiveHttpInputMessage
Publisher
.getBody
in interface ReactiveHttpInputMessage
public java.lang.String toString()
toString
in class java.lang.Object