public class ServletServerHttpResponse extends AbstractListenerServerHttpResponse
ServerHttpResponse to the Servlet HttpServletResponse.| Constructor and Description |
|---|
ServletServerHttpResponse(HttpServletResponse response,
DataBufferFactory dataBufferFactory,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
protected org.reactivestreams.Processor<org.reactivestreams.Publisher<DataBuffer>,Void> |
createBodyFlushProcessor()
Abstract template method to create a
Processor<Publisher<DataBuffer>, Void>
that will write the response body with flushes to the underlying output. |
HttpServletResponse |
getServletResponse() |
protected void |
writeCookies()
Implement this method to add cookies from
AbstractServerHttpResponse.getHeaders() to the
underlying response. |
protected void |
writeHeaders()
Implement this method to apply header changes from
AbstractServerHttpResponse.getHeaders()
to the underlying response. |
protected void |
writeStatusCode()
Implement this method to write the status code to the underlying response.
|
writeAndFlushWithInternal, writeWithInternalapplyBeforeCommit, beforeCommit, bufferFactory, getCookies, getHeaders, getStatusCode, setComplete, setStatusCode, writeAndFlushWith, writeWithpublic ServletServerHttpResponse(HttpServletResponse response, DataBufferFactory dataBufferFactory, int bufferSize) throws IOException
IOExceptionpublic HttpServletResponse getServletResponse()
protected void writeStatusCode()
AbstractServerHttpResponsewriteStatusCode in class AbstractServerHttpResponseprotected void writeHeaders()
AbstractServerHttpResponseAbstractServerHttpResponse.getHeaders()
to the underlying response. This method is called once only.writeHeaders in class AbstractServerHttpResponseprotected void writeCookies()
AbstractServerHttpResponseAbstractServerHttpResponse.getHeaders() to the
underlying response. This method is called once only.writeCookies in class AbstractServerHttpResponseprotected org.reactivestreams.Processor<org.reactivestreams.Publisher<DataBuffer>,Void> createBodyFlushProcessor()
AbstractListenerServerHttpResponseProcessor<Publisher<DataBuffer>, Void>
that will write the response body with flushes to the underlying output. Called from
AbstractListenerServerHttpResponse.writeAndFlushWithInternal(Publisher).createBodyFlushProcessor in class AbstractListenerServerHttpResponse