org.apache.coyote.Response.setOutputBuffer()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(6.7k)|赞(0)|评价(0)|浏览(113)

本文整理了Java中org.apache.coyote.Response.setOutputBuffer方法的一些代码示例,展示了Response.setOutputBuffer的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Response.setOutputBuffer方法的具体详情如下:
包路径:org.apache.coyote.Response
类名称:Response
方法名:setOutputBuffer

Response.setOutputBuffer介绍

暂无

代码示例

代码示例来源:origin: line/armeria

coyoteRes.setOutputBuffer((OutputBuffer) OUTPUT_BUFFER_CONSTRUCTOR.invoke(data));

代码示例来源:origin: codefollower/Tomcat-Research

public AjpAprProcessor(int packetSize, AprEndpoint endpoint) {
  super(packetSize, endpoint);
  response.setOutputBuffer(new SocketOutputBuffer());
  // Allocate input and output buffers
  inputBuffer = ByteBuffer.allocateDirect(packetSize * 2);
  inputBuffer.limit(0);
  outputBuffer = ByteBuffer.allocateDirect(packetSize * 2);
}

代码示例来源:origin: org.apache.coyote/com.springsource.org.apache.coyote

public AjpProcessor(int packetSize, JIoEndpoint endpoint) {
  super(packetSize, endpoint);
  response.setOutputBuffer(new SocketOutputBuffer());
}

代码示例来源:origin: org.apache.coyote/com.springsource.org.apache.coyote

public AjpAprProcessor(int packetSize, AprEndpoint endpoint) {
  super(packetSize, endpoint);
  response.setOutputBuffer(new SocketOutputBuffer());
  // Allocate input and output buffers
  inputBuffer = ByteBuffer.allocateDirect(packetSize * 2);
  inputBuffer.limit(0);
  outputBuffer = ByteBuffer.allocateDirect(packetSize * 2);
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

public AjpAprProcessor(int packetSize, AprEndpoint endpoint) {
  super(packetSize, endpoint);
  response.setOutputBuffer(new SocketOutputBuffer());
  // Allocate input and output buffers
  inputBuffer = ByteBuffer.allocateDirect(packetSize * 2);
  inputBuffer.limit(0);
  outputBuffer = ByteBuffer.allocateDirect(packetSize * 2);
}

代码示例来源:origin: org.apache.coyote/com.springsource.org.apache.coyote

public AjpNioProcessor(int packetSize, NioEndpoint endpoint) {
  super(packetSize, endpoint);
  response.setOutputBuffer(new SocketOutputBuffer());
  pool = endpoint.getSelectorPool();
}

代码示例来源:origin: codefollower/Tomcat-Research

public AjpNioProcessor(int packetSize, NioEndpoint endpoint) {
  super(packetSize, endpoint);
  response.setOutputBuffer(new SocketOutputBuffer());
  pool = endpoint.getSelectorPool();
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

public AjpNioProcessor(int packetSize, NioEndpoint endpoint) {
  super(packetSize, endpoint);
  response.setOutputBuffer(new SocketOutputBuffer());
  pool = endpoint.getSelectorPool();
}

代码示例来源:origin: codefollower/Tomcat-Research

public SpdyProcessor(SpdyConnection spdy, AbstractEndpoint<S> endpoint) {
  super(endpoint);
  this.spdy = spdy;
  request.setInputBuffer(new LiteInputBuffer());
  response.setOutputBuffer(new LiteOutputBuffer());
}

代码示例来源:origin: org.apache.tomcat/tomcat-spdy

public SpdyProcessor(SpdyConnection spdy, AbstractEndpoint<S> endpoint) {
  super(endpoint);
  this.spdy = spdy;
  request.setInputBuffer(new LiteInputBuffer());
  response.setOutputBuffer(new LiteOutputBuffer());
}

代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource

/** The high level request object associated with this context
 */
public final void setRequest( Request req ) {
  this.req=req;
  req.setInputBuffer(jkIS);
  Response res = req.getResponse();
  res.setOutputBuffer(jkIS);
  res.setHook(this);
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

public Http11NioProcessor(int maxHttpHeaderSize, NioEndpoint endpoint,
    int maxTrailerSize) {
  super(endpoint);
  inputBuffer = new InternalNioInputBuffer(request, maxHttpHeaderSize);
  request.setInputBuffer(inputBuffer);
  outputBuffer = new InternalNioOutputBuffer(response, maxHttpHeaderSize);
  response.setOutputBuffer(outputBuffer);
  initializeFilters(maxTrailerSize);
}

代码示例来源:origin: codefollower/Tomcat-Research

public Http11NioProcessor(int maxHttpHeaderSize, NioEndpoint endpoint,
    int maxTrailerSize, int maxExtensionSize) {
  super(endpoint);
  inputBuffer = new InternalNioInputBuffer(request, maxHttpHeaderSize);
  request.setInputBuffer(inputBuffer);
  outputBuffer = new InternalNioOutputBuffer(response, maxHttpHeaderSize);
  response.setOutputBuffer(outputBuffer);
  initializeFilters(maxTrailerSize, maxExtensionSize);
}

代码示例来源:origin: codefollower/Tomcat-Research

public Http11Processor(int headerBufferSize, JIoEndpoint endpoint,
    int maxTrailerSize, int maxExtensionSize) {
  super(endpoint);
  inputBuffer = new InternalInputBuffer(request, headerBufferSize);
  request.setInputBuffer(inputBuffer);
  outputBuffer = new InternalOutputBuffer(response, headerBufferSize);
  response.setOutputBuffer(outputBuffer);
  initializeFilters(maxTrailerSize, maxExtensionSize);
}

代码示例来源:origin: org.apache.coyote/com.springsource.org.apache.coyote

public Http11Processor(int headerBufferSize, JIoEndpoint endpoint,
    int maxTrailerSize) {
  super(endpoint);
  
  inputBuffer = new InternalInputBuffer(request, headerBufferSize);
  request.setInputBuffer(inputBuffer);
  outputBuffer = new InternalOutputBuffer(response, headerBufferSize);
  response.setOutputBuffer(outputBuffer);
  initializeFilters(maxTrailerSize);
}

代码示例来源:origin: codefollower/Tomcat-Research

public Http11AprProcessor(int headerBufferSize, AprEndpoint endpoint,
    int maxTrailerSize, int maxExtensionSize) {
  super(endpoint);
  inputBuffer = new InternalAprInputBuffer(request, headerBufferSize);
  request.setInputBuffer(inputBuffer);
  outputBuffer = new InternalAprOutputBuffer(response, headerBufferSize);
  response.setOutputBuffer(outputBuffer);
  initializeFilters(maxTrailerSize, maxExtensionSize);
}

代码示例来源:origin: org.jboss.web/jbossweb

/**
 * Process specified request.
 */
public void process(Request request, ByteChunk input,
          Response response, ByteChunk output)
  throws Exception {
  InputBuffer inputBuffer = new ByteChunkInputBuffer(input);
  OutputBuffer outputBuffer = new ByteChunkOutputBuffer(output);
  request.setInputBuffer(inputBuffer);
  response.setOutputBuffer(outputBuffer);
  adapter.service(request, response);
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

public Http11Processor(int headerBufferSize, JIoEndpoint endpoint,
    int maxTrailerSize) {
  super(endpoint);
  
  inputBuffer = new InternalInputBuffer(request, headerBufferSize);
  request.setInputBuffer(inputBuffer);
  outputBuffer = new InternalOutputBuffer(response, headerBufferSize);
  response.setOutputBuffer(outputBuffer);
  initializeFilters(maxTrailerSize);
}

代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource

/**
 * Process specified request.
 */
public void process(Request request, ByteChunk input,
          Response response, ByteChunk output)
  throws Exception {
  InputBuffer inputBuffer = new ByteChunkInputBuffer(input);
  OutputBuffer outputBuffer = new ByteChunkOutputBuffer(output);
  request.setInputBuffer(inputBuffer);
  response.setOutputBuffer(outputBuffer);
  adapter.service(request, response);
}

代码示例来源:origin: jboss.web/jbossweb

/**
 * Process specified request.
 */
public void process(Request request, ByteChunk input,
          Response response, ByteChunk output)
  throws Exception {
  InputBuffer inputBuffer = new ByteChunkInputBuffer(input);
  OutputBuffer outputBuffer = new ByteChunkOutputBuffer(output);
  request.setInputBuffer(inputBuffer);
  response.setOutputBuffer(outputBuffer);
  adapter.service(request, response);
}

相关文章