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

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

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

Response.recycle介绍

暂无

代码示例

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

/**
 * Recycle the output buffer. This should be called when closing the 
 * connection.
 */
public void recycle() {
  // Recycle Request object
  response.recycle();
  socket = 0;
  pos = 0;
  lastActiveFilter = -1;
  committed = false;
  finished = false;
}

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

/**
 * Reset current response.
 * 
 * @throws IllegalStateException if the response has already been committed
 */
public void reset() {
  if (committed)
    throw new IllegalStateException(/*FIXME:Put an error message*/);
  // Recycle Request object
  response.recycle();
}

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

public void reset() 
  throws IllegalStateException {
  
  if (commited) {
    throw new IllegalStateException();
  }
  recycle();
}

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

public void reset() throws IllegalStateException {
  if (committed) {
    throw new IllegalStateException();
  }
  recycle();
}

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

/**
 * Reset current response.
 * 
 * @throws IllegalStateException if the response has already been committed
 */
public void reset() {
  if (committed)
    throw new IllegalStateException(/*FIXME:Put an error message*/);
  // Recycle Request object
  response.recycle();
}

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

public void reset() 
  throws IllegalStateException {
  
  if (commited) {
    throw new IllegalStateException();
  }
  recycle();
}

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

/**
 * Reset current response.
 * 
 * @throws IllegalStateException if the response has already been committed
 */
public void reset() {
  if (committed)
    throw new IllegalStateException(/*FIXME:Put an error message*/);
  // Recycle Request object
  response.recycle();
}

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

/**
 * Reset current response.
 * 
 * @throws IllegalStateException if the response has already been committed
 */
public void reset() {
  if (committed)
    throw new IllegalStateException(/*FIXME:Put an error message*/);
  // Recycle Request object
  response.recycle();
}

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

/**
 * Reset current response.
 * 
 * @throws IllegalStateException if the response has already been committed
 */
public void reset() {
  if (committed)
    throw new IllegalStateException(/*FIXME:Put an error message*/);
  // Recycle Request object
  response.recycle();
}

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

/**
 * Recycle the output buffer. This should be called when closing the 
 * connection.
 */
public void recycle() {
  // Recycle Request object
  response.recycle();
  bbuf.clear();
  socket = 0;
  pos = 0;
  lastActiveFilter = -1;
  committed = false;
  finished = false;
}

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

/**
 * Recycle the output buffer. This should be called when closing the 
 * connection.
 */
public void recycle() {
  // Recycle Request object
  response.recycle();
  bbuf.clear();
  socket = 0;
  pos = 0;
  lastActiveFilter = -1;
  committed = false;
  finished = false;
}

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

/**
 * Reset current response.
 * 
 * @throws IllegalStateException if the response has already been committed
 */
public void reset() {
  if (committed)
    throw new IllegalStateException(/*FIXME:Put an error message*/);
  // Recycle Request object
  response.recycle();
  // These will need to be reset if the reset was triggered by the error
  // handling if the headers were too large
  pos = 0;
  byteCount = 0;
}

代码示例来源: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: org.jboss.web/jbossweb

/**
 * Recycle the output buffer. This should be called when closing the 
 * connection.
 */
public void recycle() {
  // Recycle Request object
  response.recycle();
  socketBuffer.recycle();
  outputStream = null;
  pos = 0;
  lastActiveFilter = -1;
  committed = false;
  finished = false;
}

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

/**
 * Recycle the output buffer. This should be called when closing the 
 * connection.
 */
public void recycle() {
  // Recycle Request object
  response.recycle();
  socketBuffer.recycle();
  outputStream = null;
  pos = 0;
  lastActiveFilter = -1;
  committed = false;
  finished = false;
}

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

/**
 * Recycle the output buffer. This should be called when closing the 
 * connection.
 */
public void recycle() {
  // Recycle Request object
  response.recycle();
  socketBuffer.recycle();
  outputStream = null;
  pos = 0;
  lastActiveFilter = -1;
  committed = false;
  finished = false;
}

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

/**
 * Recycle the output buffer. This should be called when closing the 
 * connection.
 */
@Override
public void recycle() {        
  response.recycle();
  socketBuffer.recycle();
  pos = 0;
  lastActiveFilter = -1;
  committed = false;
  finished = false;
  if (outputByteBuffer != null){
    outputByteBuffer.clear();
  }
  socketChannel = null;
}

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

/**
 * Recycle the output buffer. This should be called when closing the 
 * connection.
 */
public void recycle() {
  // Recycle filters
  for (int i = 0; i <= lastActiveFilter; i++) {
    activeFilters[i].recycle();
  }
  // Recycle Request object
  response.recycle();
  pos = 0;
  lastActiveFilter = -1;
  committed = false;
  finished = false;
}

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

相关文章

微信公众号

最新文章

更多