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, writeWithInternal
applyBeforeCommit, beforeCommit, bufferFactory, getCookies, getHeaders, getStatusCode, setComplete, setStatusCode, writeAndFlushWith, writeWith
public ServletServerHttpResponse(HttpServletResponse response, DataBufferFactory dataBufferFactory, int bufferSize) throws IOException
IOException
public HttpServletResponse getServletResponse()
protected void writeStatusCode()
AbstractServerHttpResponse
writeStatusCode
in class AbstractServerHttpResponse
protected void writeHeaders()
AbstractServerHttpResponse
AbstractServerHttpResponse.getHeaders()
to the underlying response. This method is called once only.writeHeaders
in class AbstractServerHttpResponse
protected void writeCookies()
AbstractServerHttpResponse
AbstractServerHttpResponse.getHeaders()
to the
underlying response. This method is called once only.writeCookies
in class AbstractServerHttpResponse
protected org.reactivestreams.Processor<org.reactivestreams.Publisher<DataBuffer>,Void> createBodyFlushProcessor()
AbstractListenerServerHttpResponse
Processor<Publisher<DataBuffer>, Void>
that will write the response body with flushes to the underlying output. Called from
AbstractListenerServerHttpResponse.writeAndFlushWithInternal(Publisher)
.createBodyFlushProcessor
in class AbstractListenerServerHttpResponse