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

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

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

Request.setInputBuffer介绍

暂无

代码示例

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

coyoteReq.setInputBuffer((InputBuffer) INPUT_BUFFER_CONSTRUCTOR.invoke(content));

代码示例来源: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: 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.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: 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);
}

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

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

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

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: org.apache.coyote/com.springsource.org.apache.coyote

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

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

public Http11Processor(int headerBufferSize, JIoEndpoint endpoint) {
  this.endpoint = endpoint;
  
  request = new Request();
  inputBuffer = new InternalInputBuffer(request, headerBufferSize);
  request.setInputBuffer(inputBuffer);
  response = new Response();
  response.setHook(this);
  outputBuffer = new InternalOutputBuffer(response, headerBufferSize);
  response.setOutputBuffer(outputBuffer);
  request.setResponse(response);
  initializeFilters();
  // Cause loading of HexUtils
  int foo = HexUtils.DEC[0];
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

public Http11Processor(int headerBufferSize, JIoEndpoint endpoint,
    int maxTrailerSize) {
  this.endpoint = endpoint;
  
  request = new Request();
  inputBuffer = new InternalInputBuffer(request, headerBufferSize);
  request.setInputBuffer(inputBuffer);
  response = new Response();
  response.setHook(this);
  outputBuffer = new InternalOutputBuffer(response, headerBufferSize);
  response.setOutputBuffer(outputBuffer);
  request.setResponse(response);
  initializeFilters(maxTrailerSize);
  // Cause loading of HexUtils
  HexUtils.load();
}

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

public Http11NioProcessor(int rxBufSize, int txBufSize, int maxHttpHeaderSize, NioEndpoint endpoint) {
  this.endpoint = endpoint;
  request = new Request();
  int readTimeout = endpoint.getSoTimeout();
  inputBuffer = new InternalNioInputBuffer(request, maxHttpHeaderSize);
  request.setInputBuffer(inputBuffer);
  response = new Response();
  response.setHook(this);
  outputBuffer = new InternalNioOutputBuffer(response, maxHttpHeaderSize);
  response.setOutputBuffer(outputBuffer);
  request.setResponse(response);
  ssl = endpoint.isSSLEnabled();
  initializeFilters();
  // Cause loading of HexUtils
  int foo = HexUtils.DEC[0];
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

public Http11AprProcessor(int headerBufferSize, AprEndpoint endpoint,
    int maxTrailerSize) {
  this.endpoint = endpoint;
  
  request = new Request();
  inputBuffer = new InternalAprInputBuffer(request, headerBufferSize);
  request.setInputBuffer(inputBuffer);
  response = new Response();
  response.setHook(this);
  outputBuffer = new InternalAprOutputBuffer(response, headerBufferSize);
  response.setOutputBuffer(outputBuffer);
  request.setResponse(response);
  
  ssl = endpoint.isSSLEnabled();
  initializeFilters(maxTrailerSize);
  // Cause loading of HexUtils
  HexUtils.load();
}

相关文章

Request类方法