Class ClientHttpResponseDecorator
java.lang.Object
org.springframework.http.client.reactive.ClientHttpResponseDecorator
- All Implemented Interfaces:
ClientHttpResponse,HttpMessage,ReactiveHttpInputMessage
Wraps another
ClientHttpResponse and delegates all methods to it.
Sub-classes can override specific methods selectively.- Since:
- 5.0
- Author:
- Rossen Stoyanchev
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<DataBuffer>getBody()Return the body of the message as aPublisher.Return a read-only map of response cookies received from the server.Return the headers of this message.getId()Return an id that represents the underlying connection, if available, or the request for the purpose of correlating log messages.intDeprecated.Return the HTTP status code as anHttpStatusCode.toString()
-
Constructor Details
-
ClientHttpResponseDecorator
-
-
Method Details
-
getDelegate
-
getId
Description copied from interface:ClientHttpResponseReturn an id that represents the underlying connection, if available, or the request for the purpose of correlating log messages.- Specified by:
getIdin interfaceClientHttpResponse
-
getStatusCode
Description copied from interface:ClientHttpResponseReturn the HTTP status code as anHttpStatusCode.- Specified by:
getStatusCodein interfaceClientHttpResponse- Returns:
- the HTTP status as
HttpStatusCodevalue (nevernull)
-
getRawStatusCode
Deprecated.Description copied from interface:ClientHttpResponseReturn the HTTP status code as an integer.- Specified by:
getRawStatusCodein interfaceClientHttpResponse- Returns:
- the HTTP status as an integer value
- See Also:
-
getHeaders
Description copied from interface:HttpMessageReturn the headers of this message.- Specified by:
getHeadersin interfaceHttpMessage- Returns:
- a corresponding HttpHeaders object (never
null)
-
getCookies
Description copied from interface:ClientHttpResponseReturn a read-only map of response cookies received from the server.- Specified by:
getCookiesin interfaceClientHttpResponse
-
getBody
Description copied from interface:ReactiveHttpInputMessageReturn the body of the message as aPublisher.- Specified by:
getBodyin interfaceReactiveHttpInputMessage- Returns:
- the body content publisher
-
toString
-