private static final class TomcatHttpHandlerAdapter.TomcatServerHttpResponse extends ServletServerHttpResponse
Constructor and Description |
---|
TomcatServerHttpResponse(HttpServletResponse response,
AsyncContext context,
DataBufferFactory factory,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
protected int |
writeToOutputStream(DataBuffer dataBuffer)
Write the DataBuffer to the response body OutputStream.
|
applyCookies, applyHeaders, applyStatusCode, createBodyFlushProcessor, getNativeResponse
writeAndFlushWithInternal, writeWithInternal
addCookie, beforeCommit, bufferFactory, doCommit, doCommit, getCookies, getHeaders, getStatusCode, getStatusCodeValue, isCommitted, setComplete, setStatusCode, setStatusCodeValue, writeAndFlushWith, writeWith
public TomcatServerHttpResponse(HttpServletResponse response, AsyncContext context, DataBufferFactory factory, int bufferSize) throws java.io.IOException
java.io.IOException
protected int writeToOutputStream(DataBuffer dataBuffer) throws java.io.IOException
ServletServerHttpResponse
ServletOutputStream#isReady()
returns "true"
and the readable bytes in the DataBuffer is greater than 0.writeToOutputStream
in class ServletServerHttpResponse
java.io.IOException