类 TomcatHttpHandlerAdapter.TomcatServerHttpResponse
java.lang.Object
cn.taketoday.http.server.reactive.AbstractServerHttpResponse
cn.taketoday.http.server.reactive.AbstractListenerServerHttpResponse
cn.taketoday.http.server.reactive.ServletServerHttpResponse
cn.taketoday.http.server.reactive.TomcatHttpHandlerAdapter.TomcatServerHttpResponse
- 所有已实现的接口:
HttpMessage,ReactiveHttpOutputMessage,ServerHttpResponse
private static final class TomcatHttpHandlerAdapter.TomcatServerHttpResponse
extends ServletServerHttpResponse
-
字段概要
字段 -
构造器概要
构造器构造器说明TomcatServerHttpResponse(HttpServletResponse response, AsyncContext context, cn.taketoday.core.io.buffer.DataBufferFactory factory, int bufferSize, ServletServerHttpRequest request) -
方法概要
修饰符和类型方法说明protected voidInvoked when the response is getting committed allowing sub-classes to make apply header values to the underlying response.private static HttpHeaderscreateTomcatHttpHeaders(HttpServletResponse response) private static org.apache.catalina.connector.ResponseFacadegetResponseFacade(HttpServletResponse response) protected intwriteToOutputStream(cn.taketoday.core.io.buffer.DataBuffer dataBuffer) Write the DataBuffer to the response body OutputStream.从类继承的方法 cn.taketoday.http.server.reactive.ServletServerHttpResponse
applyCookies, applyStatusCode, createBodyFlushProcessor, getAsyncListener, getNativeResponse, getOutputStream, getRawStatusCode, getStatusCode从类继承的方法 cn.taketoday.http.server.reactive.AbstractListenerServerHttpResponse
writeAndFlushWithInternal, writeWithInternal从类继承的方法 cn.taketoday.http.server.reactive.AbstractServerHttpResponse
addCookie, beforeCommit, bufferFactory, doCommit, doCommit, getCookies, getHeaders, isCommitted, setComplete, setRawStatusCode, setStatusCode, touchDataBuffer, writeAndFlushWith, writeWith
-
字段详细资料
-
COYOTE_RESPONSE_FIELD
-
-
构造器详细资料
-
TomcatServerHttpResponse
TomcatServerHttpResponse(HttpServletResponse response, AsyncContext context, cn.taketoday.core.io.buffer.DataBufferFactory factory, int bufferSize, ServletServerHttpRequest request) throws IOException - 抛出:
IOException
-
-
方法详细资料
-
createTomcatHttpHeaders
-
getResponseFacade
private static org.apache.catalina.connector.ResponseFacade getResponseFacade(HttpServletResponse response) -
applyHeaders
protected void applyHeaders()从类复制的说明:AbstractServerHttpResponseInvoked when the response is getting committed allowing sub-classes to make apply header values to the underlying response.Note that most sub-classes use an
HttpHeadersinstance that wraps an adapter to the native response headers such that changes are propagated to the underlying response on the go. That means this callback is typically not used other than for specialized updates such as setting the contentType or characterEncoding fields in a Servlet response. -
writeToOutputStream
protected int writeToOutputStream(cn.taketoday.core.io.buffer.DataBuffer dataBuffer) throws IOException 从类复制的说明:ServletServerHttpResponseWrite the DataBuffer to the response body OutputStream. Invoked only whenServletOutputStream.isReady()returns "true" and the readable bytes in the DataBuffer is greater than 0.- 覆盖:
writeToOutputStream在类中ServletServerHttpResponse- 返回:
- the number of bytes written
- 抛出:
IOException
-