public abstract class AbstractListenerServerHttpResponse extends AbstractServerHttpResponse
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.atomic.AtomicBoolean |
writeCalled |
Constructor and Description |
---|
AbstractListenerServerHttpResponse(DataBufferFactory dataBufferFactory) |
Modifier and Type | Method and Description |
---|---|
protected abstract <any> |
createBodyFlushProcessor()
Abstract template method to create a
Processor<Publisher<DataBuffer>, Void>
that will write the response body with flushes to the underlying output. |
protected <any> |
writeAndFlushWithInternal(<any> body)
Implement this method to write to the underlying the response, and flush after
each
Publisher<DataBuffer> . |
protected <any> |
writeWithInternal(<any> body)
Implement this method to write to the underlying the response.
|
applyCookies, applyHeaders, applyStatusCode, beforeCommit, bufferFactory, doCommit, doCommit, encodeUrl, getCookies, getHeaders, getStatusCode, isCommitted, registerUrlEncoder, setComplete, setStatusCode, writeAndFlushWith, writeWith
public AbstractListenerServerHttpResponse(DataBufferFactory dataBufferFactory)
protected final <any> writeWithInternal(<any> body)
AbstractServerHttpResponse
writeWithInternal
in class AbstractServerHttpResponse
body
- the publisher to write withprotected final <any> writeAndFlushWithInternal(<any> body)
AbstractServerHttpResponse
Publisher<DataBuffer>
.writeAndFlushWithInternal
in class AbstractServerHttpResponse
body
- the publisher to write and flush withprotected abstract <any> createBodyFlushProcessor()
Processor<Publisher<DataBuffer>, Void>
that will write the response body with flushes to the underlying output. Called from
#writeAndFlushWithInternal(Publisher)
.