Top Description Fields Constructors Methods
org.springframework.http.client.reactive

public abstract Class AbstractClientHttpResponse

extends Object
implements ClientHttpResponse
Class Inheritance
All Implemented Interfaces
org.springframework.http.client.reactive.ClientHttpResponse, org.springframework.http.ReactiveHttpInputMessage, org.springframework.http.HttpMessage
Known Direct Subclasses
org.springframework.http.client.reactive.HttpComponentsClientHttpResponse, org.springframework.http.client.reactive.JdkClientHttpResponse, org.springframework.http.client.reactive.JettyClientHttpResponse
Imports
java.util.concurrent.atomic.AtomicBoolean, reactor.core.publisher.Flux, org.springframework.core.io.buffer.DataBuffer, org.springframework.http.HttpHeaders, .HttpStatusCode, .ResponseCookie, org.springframework.util.Assert, .MultiValueMap

Base class for ClientHttpResponse implementations.
Author
Arjen Poutsma
Since
5.3.32

Field Summary

Modifier and TypeField and Description
private final Flux<DataBuffer>
private final MultiValueMap<String, ResponseCookie>
private final HttpHeaders
private final HttpStatusCode

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public Flux<DataBuffer>
getBody()

Implements org.springframework.http.ReactiveHttpInputMessage.getBody.

Return the body of the message as a Publisher.

public MultiValueMap<String, ResponseCookie>
getCookies()

Implements org.springframework.http.client.reactive.ClientHttpResponse.getCookies.

Return a read-only map of response cookies received from the server.

public HttpHeaders
getHeaders()

Implements org.springframework.http.HttpMessage.getHeaders.

Return the headers of this message.

public HttpStatusCode
private static Flux<DataBuffer>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bodyback to summary
private final Flux<DataBuffer> body
cookiesback to summary
private final MultiValueMap<String, ResponseCookie> cookies
headersback to summary
private final HttpHeaders headers
statusCodeback to summary
private final HttpStatusCode statusCode

Constructor Detail

AbstractClientHttpResponseback to summary
protected AbstractClientHttpResponse(HttpStatusCode statusCode, HttpHeaders headers, MultiValueMap<String, ResponseCookie> cookies, Flux<DataBuffer> body)

Method Detail

getBodyback to summary
public Flux<DataBuffer> getBody()

Implements org.springframework.http.ReactiveHttpInputMessage.getBody.

Doc from org.springframework.http.ReactiveHttpInputMessage.getBody.

Return the body of the message as a Publisher.

Returns:Flux<DataBuffer>

the body content publisher

Annotations
@Override
getCookiesback to summary
public MultiValueMap<String, ResponseCookie> getCookies()

Implements org.springframework.http.client.reactive.ClientHttpResponse.getCookies.

Doc from org.springframework.http.client.reactive.ClientHttpResponse.getCookies.

Return a read-only map of response cookies received from the server.

Annotations
@Override
getHeadersback to summary
public HttpHeaders getHeaders()

Implements org.springframework.http.HttpMessage.getHeaders.

Doc from org.springframework.http.HttpMessage.getHeaders.

Return the headers of this message.

Returns:HttpHeaders

a corresponding HttpHeaders object (never null)

Annotations
@Override
getStatusCodeback to summary
public HttpStatusCode getStatusCode()

Implements org.springframework.http.client.reactive.ClientHttpResponse.getStatusCode.

Doc from org.springframework.http.client.reactive.ClientHttpResponse.getStatusCode.

Return the HTTP status code as an HttpStatusCode.

Returns:HttpStatusCode

the HTTP status as HttpStatusCode value (never null)

Annotations
@Override
singleSubscriptionback to summary
private static Flux<DataBuffer> singleSubscription(Flux<DataBuffer> body)