本文整理了Java中org.apache.coyote.Response.recycle
方法的一些代码示例,展示了Response.recycle
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Response.recycle
方法的具体详情如下:
包路径:org.apache.coyote.Response
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!