类 TomcatHttpHandlerAdapter.TomcatServerHttpResponse

所有已实现的接口:
HttpMessage, ReactiveHttpOutputMessage, ServerHttpResponse
封闭类:
TomcatHttpHandlerAdapter

private static final class TomcatHttpHandlerAdapter.TomcatServerHttpResponse extends ServletServerHttpResponse
  • 字段详细资料

    • COYOTE_RESPONSE_FIELD

      private static final Field COYOTE_RESPONSE_FIELD
  • 构造器详细资料

  • 方法详细资料

    • createTomcatHttpHeaders

      private static HttpHeaders createTomcatHttpHeaders(HttpServletResponse response)
    • getResponseFacade

      private static org.apache.catalina.connector.ResponseFacade getResponseFacade(HttpServletResponse response)
    • applyHeaders

      protected void applyHeaders()
      从类复制的说明: AbstractServerHttpResponse
      Invoked 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 HttpHeaders instance 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.

      覆盖:
      applyHeaders 在类中 ServletServerHttpResponse
    • writeToOutputStream

      protected int writeToOutputStream(cn.taketoday.core.io.buffer.DataBuffer dataBuffer) throws IOException
      从类复制的说明: ServletServerHttpResponse
      Write the DataBuffer to the response body OutputStream. Invoked only when ServletOutputStream.isReady() returns "true" and the readable bytes in the DataBuffer is greater than 0.
      覆盖:
      writeToOutputStream 在类中 ServletServerHttpResponse
      返回:
      the number of bytes written
      抛出:
      IOException