public class ServletServerHttpResponse extends AbstractListenerServerHttpResponse
ServerHttpResponse to the Servlet HttpServletResponse.| Constructor and Description |
|---|
ServletServerHttpResponse(HttpServletResponse response,
AsyncContext asyncContext,
org.springframework.core.io.buffer.DataBufferFactory bufferFactory,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyCookies()
Implement this method to add cookies from
AbstractServerHttpResponse.getHeaders() to the
underlying response. |
protected void |
applyHeaders()
Implement this method to apply header changes from
AbstractServerHttpResponse.getHeaders()
to the underlying response. |
protected void |
applyStatusCode()
Implement this method to write the status code to the underlying response.
|
protected org.reactivestreams.Processor<? super org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.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() |
writeAndFlushWithInternal, writeWithInternalbeforeCommit, bufferFactory, doCommit, doCommit, encodeUrl, getCookies, getHeaders, getStatusCode, registerUrlEncoder, setComplete, setStatusCode, writeAndFlushWith, writeWithpublic ServletServerHttpResponse(HttpServletResponse response, AsyncContext asyncContext, org.springframework.core.io.buffer.DataBufferFactory bufferFactory, int bufferSize) throws IOException
IOExceptionpublic HttpServletResponse getServletResponse()
protected void applyStatusCode()
AbstractServerHttpResponseapplyStatusCode in class AbstractServerHttpResponseprotected 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 AbstractServerHttpResponseprotected org.reactivestreams.Processor<? super org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.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