Class AbstractClientHttpResponse
java.lang.Object
org.springframework.http.client.reactive.AbstractClientHttpResponse
- All Implemented Interfaces:
ClientHttpResponse
,HttpMessage
,ReactiveHttpInputMessage
Base class for
ClientHttpResponse
implementations.- Since:
- 5.3.32
- Author:
- Arjen Poutsma
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractClientHttpResponse
(HttpStatusCode statusCode, HttpHeaders headers, MultiValueMap<String, ResponseCookie> cookies, reactor.core.publisher.Flux<DataBuffer> body) -
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.Return the HTTP status code as anHttpStatusCode
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.http.client.reactive.ClientHttpResponse
getId
-
Constructor Details
-
AbstractClientHttpResponse
protected AbstractClientHttpResponse(HttpStatusCode statusCode, HttpHeaders headers, MultiValueMap<String, ResponseCookie> cookies, reactor.core.publisher.Flux<DataBuffer> body)
-
-
Method Details
-
getStatusCode
Description copied from interface:ClientHttpResponse
Return the HTTP status code as anHttpStatusCode
.- Specified by:
getStatusCode
in interfaceClientHttpResponse
- Returns:
- the HTTP status as
HttpStatusCode
value (nevernull
)
-
getHeaders
Description copied from interface:HttpMessage
Return the headers of this message.- Specified by:
getHeaders
in interfaceHttpMessage
- Returns:
- a corresponding HttpHeaders object (never
null
)
-
getCookies
Description copied from interface:ClientHttpResponse
Return a read-only map of response cookies received from the server.- Specified by:
getCookies
in interfaceClientHttpResponse
-
getBody
Description copied from interface:ReactiveHttpInputMessage
Return the body of the message as aPublisher
.- Specified by:
getBody
in interfaceReactiveHttpInputMessage
- Returns:
- the body content publisher
-