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
ConstructorsModifierConstructorDescriptionprotectedAbstractClientHttpResponse(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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:ClientHttpResponseReturn the HTTP status code as anHttpStatusCode.- Specified by:
getStatusCodein interfaceClientHttpResponse- Returns:
- the HTTP status as
HttpStatusCodevalue (nevernull)
-
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
-