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

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

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

Request.recycle介绍

暂无

代码示例

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

/**
 * Recycle the input buffer. This should be called when closing the 
 * connection.
 */
public void recycle() {
  // Recycle Request object
  request.recycle();
  lastValid = 0;
  pos = 0;
  lastActiveFilter = -1;
  parsingHeader = true;
  swallowInput = true;
}

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

/**
 * Recycle the input buffer. This should be called when closing the 
 * connection.
 */
public void recycle() {
  // Recycle Request object
  request.recycle();
  inputStream = null;
  lastValid = 0;
  pos = 0;
  lastActiveFilter = -1;
  parsingHeader = true;
  swallowInput = true;
}

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

/**
 * Recycle the input buffer. This should be called when closing the 
 * connection.
 */
public void recycle() {
  // Recycle Request object
  request.recycle();
  inputStream = null;
  lastValid = 0;
  pos = 0;
  lastActiveFilter = -1;
  parsingHeader = true;
  swallowInput = true;
}

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

/**
 * Recycle the input buffer. This should be called when closing the 
 * connection.
 */
public void recycle() {
  // Recycle Request object
  request.recycle();
  socket = 0;
  lastValid = 0;
  pos = 0;
  lastActiveFilter = -1;
  parsingHeader = true;
  swallowInput = true;
  available = false;
}

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

/**
 * Recycle the input buffer. This should be called when closing the 
 * connection.
 */
public void recycle() {
  // Recycle Request object
  request.recycle();
  inputStream = null;
  lastValid = 0;
  pos = 0;
  lastActiveFilter = -1;
  parsingHeader = true;
  swallowInput = true;
}

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

/**
 * Recycle the input buffer. This should be called when closing the 
 * connection.
 */
public void recycle() {
  // Recycle Request object
  request.recycle();
  inputStream = null;
  lastValid = 0;
  pos = 0;
  lastActiveFilter = -1;
  parsingHeader = true;
  swallowInput = true;
}

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

/**
 * Recycle the input buffer. This should be called when closing the 
 * connection.
 */
public void recycle() {
  // Recycle Request object
  request.recycle();
  socket = 0;
  lastValid = 0;
  pos = 0;
  lastActiveFilter = -1;
  parsingHeader = true;
  swallowInput = true;
}

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

/**
 * Recycle the input buffer. This should be called when closing the 
 * connection.
 */
public void recycle() {
  // Recycle Request object
  request.recycle();
  socket = 0;
  lastValid = 0;
  pos = 0;
  lastActiveFilter = -1;
  parsingHeader = true;
  swallowInput = true;
  available = false;
}

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

/**
 * Recycle the input buffer. This should be called when closing the
 * connection.
 */
public void recycle() {
  // Recycle Request object
  request.recycle();
  lastValid = 0;
  reset();
}

代码示例来源:origin: org.glassfish.metro/webservices-extra

public void afterService(Request req, Response res) 
  throws Exception {
  // Recycle the wrapper request and response
  req.recycle();
  res.recycle();     
}

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

/**
 * Recycle the input buffer. This should be called when closing the
 * connection.
 */
public void recycle() {
  // Recycle Request object
  request.recycle();
  // Recycle filters
  for (int i = 0; i <= lastActiveFilter; i++) {
    activeFilters[i].recycle();
  }
  lastValid = 0;
  pos = 0;
  lastActiveFilter = -1;
  parsingHeader = true;
  swallowInput = true;
}

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

/**
 * Recycle the input buffer. This should be called when closing the 
 * connection.
 */
public void recycle() {
  // Recycle Request object
  request.recycle();
  // Recycle filters
  for (int i = 0; i <= lastActiveFilter; i++) {
    activeFilters[i].recycle();
  }
  lastValid = 0;
  pos = 0;
  lastActiveFilter = -1;
  parsingHeader = true;
  swallowInput = true;
}

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

/**
 * Recycle the processor.
 */
public void recycle() {
  // Recycle Request object
  first = true;
  endOfStream = false;
  empty = true;
  replay = false;
  finished = false;
  request.recycle();
  response.recycle();
  certificates.recycle();
  inputBuffer.clear();
  inputBuffer.limit(0);
  outputBuffer.clear();
}

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

/**
 * Recycle the processor.
 */
public void recycle() {
  // Recycle Request object
  first = true;
  endOfStream = false;
  empty = true;
  replay = false;
  finished = false;
  timeout = -1;
  resumeNotification = false;
  eventProcessing = true;
  request.recycle();
  response.recycle();
  certificates.recycle();
  inputBuffer.clear();
  inputBuffer.limit(0);
  outputBuffer.clear();
}

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Recycle the input buffer. This should be called when closing the
 * connection.
 */
void recycle() {
  wrapper = null;
  request.recycle();
  for (int i = 0; i <= lastActiveFilter; i++) {
    activeFilters[i].recycle();
  }
  byteBuffer.limit(0).position(0);
  lastActiveFilter = -1;
  parsingHeader = true;
  swallowInput = true;
  headerParsePos = HeaderParsePosition.HEADER_START;
  parsingRequestLine = true;
  parsingRequestLinePhase = 0;
  parsingRequestLineEol = false;
  parsingRequestLineStart = 0;
  parsingRequestLineQPos = -1;
  headerData.recycle();
}

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

/**
 * Recycle the processor.
 */
public void recycle() {
  // Recycle Request object
  first = true;
  endOfStream = false;
  empty = true;
  replay = false;
  finished = false;
  request.recycle();
  response.recycle();
  certificates.recycle();
}

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

/**
 * Recycle the processor.
 */
public void recycle() {
  // Recycle Request object
  first = true;
  endOfStream = false;
  empty = true;
  replay = false;
  finished = false;
  timeout = -1;
  resumeNotification = false;
  eventProcessing = true;
  request.recycle();
  response.recycle();
  certificates.recycle();
}

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

/**
 * Recycle the processor.
 */
public void recycle() {
  // Recycle Request object
  first = true;
  endOfStream = false;
  empty = true;
  replay = false;
  finished = false;
  timeout = -1;
  resumeNotification = false;
  eventProcessing = true;
  request.recycle();
  response.recycle();
  certificates.recycle();
}

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

public void recycle() {
  asyncStateMachine.recycle();
  // Recycle Request object
  first = true;
  endOfStream = false;
  empty = true;
  replay = false;
  finished = false;
  request.recycle();
  response.recycle();
  certificates.recycle();
  byteCount = 0;
}

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

@Override
public void recycle() {
  getAdapter().checkRecycled(request, response);
  super.recycle();
  request.recycle();
  response.recycle();
  first = true;
  endOfStream = false;
  waitingForBodyMessage = false;
  empty = true;
  replay = false;
  responseFinished = false;
  certificates.recycle();
  swallowResponse = false;
  bytesWritten = 0;
}

相关文章

Request类方法