class ReactorClientHttpResponse extends java.lang.Object implements ClientHttpResponse
ClientHttpResponse
implementation for the Reactor-Netty HTTP client.reactor.ipc.netty.http.client.HttpClient
Modifier and Type | Field and Description |
---|---|
private NettyDataBufferFactory |
dataBufferFactory |
private HttpClientResponse |
response |
Constructor and Description |
---|
ReactorClientHttpResponse(HttpClientResponse response) |
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 of the response.
|
java.lang.String |
toString() |
private final NettyDataBufferFactory dataBufferFactory
private final HttpClientResponse response
public ReactorClientHttpResponse(HttpClientResponse response)
public <any> getBody()
ReactiveHttpInputMessage
Publisher
.getBody
in interface ReactiveHttpInputMessage
public HttpHeaders getHeaders()
HttpMessage
getHeaders
in interface HttpMessage
null
)public HttpStatus getStatusCode()
ClientHttpResponse
getStatusCode
in interface ClientHttpResponse
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