class ReactorClientHttpResponse extends java.lang.Object implements ClientHttpResponse
ClientHttpResponse
implementation for the Reactor-Netty HTTP client.reactor.netty.http.client.HttpClient
Modifier and Type | Field and Description |
---|---|
private NettyDataBufferFactory |
bufferFactory |
private NettyInbound |
inbound |
private java.util.concurrent.atomic.AtomicBoolean |
rejectSubscribers |
private HttpClientResponse |
response |
Constructor and Description |
---|
ReactorClientHttpResponse(HttpClientResponse response,
NettyInbound inbound,
ByteBufAllocator alloc) |
Modifier and Type | Method and Description |
---|---|
<any> |
getBody()
Return the body of the message as a
Publisher . |
MultiValueMap<java.lang.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. |
java.lang.String |
toString() |
private final NettyDataBufferFactory bufferFactory
private final HttpClientResponse response
private final NettyInbound inbound
private final java.util.concurrent.atomic.AtomicBoolean rejectSubscribers
public ReactorClientHttpResponse(HttpClientResponse response, NettyInbound inbound, ByteBufAllocator alloc)
public <any> getBody()
ReactiveHttpInputMessage
Publisher
.getBody
in interface ReactiveHttpInputMessage
public HttpHeaders getHeaders()
HttpMessage
getHeaders
in interface HttpMessage
null
)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 MultiValueMap<java.lang.String,ResponseCookie> getCookies()
ClientHttpResponse
getCookies
in interface ClientHttpResponse
public java.lang.String toString()
toString
in class java.lang.Object