ServerHttpResponse to the HttpServerResponse.
| Modifier and Type | Field and Description |
|---|---|
| private static final Log | |
| private final HttpServerResponse |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | applyCookies()
Implements abstract org. getHeaders() to the underlying response.
|
| protected void | applyHeaders()
Implements abstract org. |
| protected void | applyStatusCode()
Implements abstract org. |
| public <T> T | getNativeResponse()
Implements abstract org. |
| public Integer | getRawStatusCode()
Overrides org. Overrides default org.
Deprecated
Return the status code that has been set, or otherwise fall back on the
status of the response from the underlying server.
|
| public HttpStatusCode | getStatusCode()
Overrides org. Implements org. |
| private Publisher | |
| protected void | touchDataBuffer(DataBuffer
the buffer to attach a hint to buffer)Overrides org. |
| protected Mono | writeAndFlushWithInternal(Publisher<? extends Publisher<? extends DataBuffer>>
the publisher to write and flush with publisher)Implements abstract org. Publisher<DataBuffer>.
|
| public Mono | writeWith(Path
the file to transfer file, long the position within the file from which the transfer is to begin position, long the number of bytes to be transferred count)Implements org. Path to write the body of the message to the underlying
HTTP layer.
|
| protected Mono | writeWithInternal(Publisher<? extends DataBuffer>
the publisher to write with publisher)Implements abstract org. |
| logger | back to summary |
|---|---|
| private static final Log logger | |
| response | back to summary |
|---|---|
| private final HttpServerResponse response | |
| ReactorServerHttpResponse | back to summary |
|---|---|
| public ReactorServerHttpResponse(HttpServerResponse response, DataBufferFactory bufferFactory) | |
| applyCookies | back to summary |
|---|---|
| protected void applyCookies() Implements abstract org. Doc from org. Add cookies from
| |
| applyHeaders | back to summary |
|---|---|
| protected void applyHeaders() Implements abstract org. Doc from org. Invoked when the response is getting committed allowing subclasses to make apply header values to the underlying response. Note that some subclasses use an
| |
| applyStatusCode | back to summary |
|---|---|
| protected void applyStatusCode() Implements abstract org. Doc from org. Write the status code to the underlying response. This method is called once only.
| |
| getNativeResponse | back to summary |
|---|---|
| public <T> T getNativeResponse() Implements abstract org. Doc from org. Return the underlying server response. Note This is exposed mainly for internal framework use such as WebSocket upgrades in the spring-webflux module.
| |
| getRawStatusCode | back to summary |
|---|---|
| public Integer getRawStatusCode() Overrides org. Overrides default org. Doc from org. Deprecated
Return the status code that has been set, or otherwise fall back on the
status of the response from the underlying server. The return value may
be
| |
| getStatusCode | back to summary |
|---|---|
| public HttpStatusCode getStatusCode() Overrides org. Implements org. Doc from org. Return the status code that has been set, or otherwise fall back on the
status of the response from the underlying server. The return value may
be
| |
| toByteBufs | back to summary |
|---|---|
| private Publisher | |
| touchDataBuffer | back to summary |
|---|---|
| protected void touchDataBuffer(DataBuffer buffer) Overrides org. Doc from org. Allow subclasses to associate a hint with the data buffer if it is a pooled buffer and supports leak tracking.
| |
| writeAndFlushWithInternal | back to summary |
|---|---|
| protected Mono Implements abstract org. Doc from org. Write to the underlying the response, and flush after each
| |
| writeWith | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Use the given | |
| writeWithInternal | back to summary |
|---|---|
| protected Mono Implements abstract org. Doc from org. Write to the underlying the response.
| |