public abstract class AbstractClientHttpResponse extends Object implements ClientHttpResponse
ClientHttpResponse
implementations.Modifier | Constructor and Description |
---|---|
protected |
AbstractClientHttpResponse(int statusCode,
HttpHeaders headers,
MultiValueMap<String,ResponseCookie> cookies,
reactor.core.publisher.Flux<DataBuffer> body) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<DataBuffer> |
getBody()
Return the body of the message as a
Publisher . |
MultiValueMap<String,ResponseCookie> |
getCookies()
Return a read-only map of response cookies received from the server.
|
HttpHeaders |
getHeaders()
Return the headers of this message.
|
int |
getRawStatusCode()
Return the HTTP status code (potentially non-standard and not
resolvable through the
HttpStatus enum) as an integer. |
HttpStatus |
getStatusCode()
Return the HTTP status code as an
HttpStatus enum value. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId
protected AbstractClientHttpResponse(int statusCode, HttpHeaders headers, MultiValueMap<String,ResponseCookie> cookies, reactor.core.publisher.Flux<DataBuffer> body)
public HttpStatus getStatusCode()
ClientHttpResponse
HttpStatus
enum value.getStatusCode
in interface ClientHttpResponse
null
)HttpStatus.valueOf(int)
public int getRawStatusCode()
ClientHttpResponse
HttpStatus
enum) as an integer.getRawStatusCode
in interface ClientHttpResponse
ClientHttpResponse.getStatusCode()
,
HttpStatus.resolve(int)
public HttpHeaders getHeaders()
HttpMessage
getHeaders
in interface HttpMessage
null
)public MultiValueMap<String,ResponseCookie> getCookies()
ClientHttpResponse
getCookies
in interface ClientHttpResponse
public reactor.core.publisher.Flux<DataBuffer> getBody()
ReactiveHttpInputMessage
Publisher
.getBody
in interface ReactiveHttpInputMessage