public class ReactorServerHttpResponse extends AbstractServerHttpResponse implements ZeroCopyHttpOutputMessage
ServerHttpResponse to the HttpServerResponse.| Constructor and Description |
|---|
ReactorServerHttpResponse(reactor.ipc.netty.http.server.HttpServerResponse response,
DataBufferFactory bufferFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyCookies()
Add cookies from
AbstractServerHttpResponse.getHeaders() to the underlying response. |
protected void |
applyHeaders()
Apply header changes from
AbstractServerHttpResponse.getHeaders() to the underlying response. |
protected void |
applyStatusCode()
Write the status code to the underlying response.
|
reactor.ipc.netty.http.server.HttpServerResponse |
getReactorResponse() |
protected reactor.core.publisher.Mono<Void> |
writeAndFlushWithInternal(org.reactivestreams.Publisher<? extends org.reactivestreams.Publisher<? extends DataBuffer>> publisher)
Write to the underlying the response, and flush after each
Publisher<DataBuffer>. |
reactor.core.publisher.Mono<Void> |
writeWith(File file,
long position,
long count)
Use the given
File to write the body of the message to the underlying
HTTP layer. |
protected reactor.core.publisher.Mono<Void> |
writeWithInternal(org.reactivestreams.Publisher<? extends DataBuffer> publisher)
Write to the underlying the response.
|
addCookie, beforeCommit, bufferFactory, doCommit, doCommit, getCookies, getHeaders, getStatusCode, isCommitted, setComplete, setStatusCode, writeAndFlushWith, writeWithclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbeforeCommit, bufferFactory, isCommitted, setComplete, writeAndFlushWith, writeWithgetHeaderspublic ReactorServerHttpResponse(reactor.ipc.netty.http.server.HttpServerResponse response,
DataBufferFactory bufferFactory)
public reactor.ipc.netty.http.server.HttpServerResponse getReactorResponse()
protected void applyStatusCode()
AbstractServerHttpResponseapplyStatusCode in class AbstractServerHttpResponseprotected reactor.core.publisher.Mono<Void> writeWithInternal(org.reactivestreams.Publisher<? extends DataBuffer> publisher)
AbstractServerHttpResponsewriteWithInternal in class AbstractServerHttpResponsepublisher - the publisher to write withprotected reactor.core.publisher.Mono<Void> writeAndFlushWithInternal(org.reactivestreams.Publisher<? extends org.reactivestreams.Publisher<? extends DataBuffer>> publisher)
AbstractServerHttpResponsePublisher<DataBuffer>.writeAndFlushWithInternal in class AbstractServerHttpResponsepublisher - the publisher to write and flush withprotected void applyHeaders()
AbstractServerHttpResponseAbstractServerHttpResponse.getHeaders() to the underlying response.
This method is called once only.applyHeaders in class AbstractServerHttpResponseprotected void applyCookies()
AbstractServerHttpResponseAbstractServerHttpResponse.getHeaders() to the underlying response.
This method is called once only.applyCookies in class AbstractServerHttpResponsepublic reactor.core.publisher.Mono<Void> writeWith(File file, long position, long count)
ZeroCopyHttpOutputMessageFile to write the body of the message to the underlying
HTTP layer.writeWith in interface ZeroCopyHttpOutputMessagefile - the file to transferposition - the position within the file from which the transfer is to begincount - the number of bytes to be transferred