本文整理了Java中org.apache.catalina.connector.Response.isCommitted
方法的一些代码示例,展示了Response.isCommitted
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Response.isCommitted
方法的具体详情如下:
包路径:org.apache.catalina.connector.Response
类名称:Response
方法名:isCommitted
[英]Has the output of this response already been committed?
[中]此响应的输出是否已提交?
代码示例来源:origin: org.jboss.web/jbossweb
public void setContentLengthLong(long length) {
if (isCommitted())
return;
// Ignore any call from an included servlet
if (included)
return;
if (usingWriter)
return;
coyoteResponse.setContentLength(length);
}
代码示例来源:origin: org.osivia.portal.core/osivia-portal-jbossas-jbossweb-lib
/* */ public void setHeader(String name, String value)
/* */ {
/* 1288 */ if (isCommitted()) {
/* 1289 */ return;
/* */ }
/* */
/* 1292 */ if (this.included) {
/* 1293 */ return;
/* */ }
/* 1295 */ this.coyoteResponse.setHeader(name, value);
/* */ }
/* */
代码示例来源:origin: tomcat/catalina
/**
* Reset the data buffer but not any status or header information.
*
* @exception IllegalStateException if the response has already
* been committed
*/
public void resetBuffer() {
if (isCommitted())
throw new IllegalStateException
(sm.getString("coyoteResponse.resetBuffer.ise"));
outputBuffer.reset();
}
代码示例来源:origin: jboss.web/jbossweb
/**
* Reset the data buffer but not any status or header information.
*
* @exception IllegalStateException if the response has already
* been committed
*/
public void resetBuffer() {
if (isCommitted())
throw new IllegalStateException
(sm.getString("coyoteResponse.resetBuffer.ise"));
outputBuffer.reset();
}
代码示例来源:origin: org.osivia.portal.core/osivia-portal-jbossas-jbossweb-lib
/* */ public void resetBuffer()
/* */ {
/* 665 */ if (isCommitted()) {
/* 666 */ throw new IllegalStateException(sm.getString("coyoteResponse.resetBuffer.ise"));
/* */ }
/* */
/* 669 */ this.outputBuffer.reset();
/* */ }
/* */
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
@Override
public void setContentLengthLong(long length) {
if (isCommitted()) {
return;
}
// Ignore any call from an included servlet
if (included) {
return;
}
getCoyoteResponse().setContentLength(length);
}
代码示例来源:origin: org.jboss.web/jbossweb
/**
* Reset the data buffer but not any status or header information.
*
* @exception IllegalStateException if the response has already
* been committed
*/
public void resetBuffer() {
if (isCommitted())
throw MESSAGES.cannotResetBuffer();
outputBuffer.reset();
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
@Override
public void setContentLengthLong(long length) {
if (isCommitted()) {
return;
}
// Ignore any call from an included servlet
if (included) {
return;
}
getCoyoteResponse().setContentLength(length);
}
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
/**
* Application commit flag accessor.
*
* @return <code>true</code> if the application has committed the response
*/
public boolean isAppCommitted() {
return this.appCommitted || isCommitted() || isSuspended()
|| ((getContentLength() > 0)
&& (getContentWritten() >= getContentLength()));
}
代码示例来源:origin: org.jboss.web/jbossweb
/**
* Application commit flag accessor.
*/
public boolean isAppCommitted() {
return (this.appCommitted || isCommitted() || isSuspended()
|| ((getContentLength() > 0)
&& (getContentCount() >= getContentLength())));
}
代码示例来源:origin: tomcat/catalina
/**
* Application commit flag accessor.
*/
public boolean isAppCommitted() {
return (this.appCommitted || isCommitted() || isSuspended()
|| ((getContentLength() > 0)
&& (getContentCount() >= getContentLength())));
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
/**
* Application commit flag accessor.
*/
public boolean isAppCommitted() {
return (this.appCommitted || isCommitted() || isSuspended()
|| ((getContentLength() > 0)
&& (getContentWritten() >= getContentLength())));
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
/**
* Application commit flag accessor.
*/
public boolean isAppCommitted() {
return (this.appCommitted || isCommitted() || isSuspended()
|| ((getContentLength() > 0)
&& (getContentWritten() >= getContentLength())));
}
代码示例来源:origin: codefollower/Tomcat-Research
/**
* Application commit flag accessor.
*/
public boolean isAppCommitted() {
return (this.appCommitted || isCommitted() || isSuspended()
|| ((getContentLength() > 0)
&& (getContentWritten() >= getContentLength())));
}
代码示例来源:origin: org.glassfish.main.web/web-core
/**
* Application commit flag accessor.
*/
public boolean isAppCommitted() {
return this.appCommitted || isCommitted() || isSuspended()
|| getContentLength() > 0
&& getContentCount() >= getContentLength();
}
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
/**
* Application commit flag accessor.
*/
public boolean isAppCommitted() {
return (this.appCommitted || isCommitted() || isSuspended()
|| ((getContentLength() > 0)
&& (getContentWritten() >= getContentLength())));
}
代码示例来源:origin: org.osivia.portal.core/osivia-portal-jbossas-jbossweb-lib
/* */ public boolean isAppCommitted()
/* */ {
/* 324 */ return (this.appCommitted) || (isCommitted()) || (isSuspended()) || ((getContentLength() > 0) && (getContentCount() >= getContentLength()));
/* */ }
/* */
代码示例来源:origin: jboss.web/jbossweb
/**
* Application commit flag accessor.
*/
public boolean isAppCommitted() {
return (this.appCommitted || isCommitted() || isSuspended()
|| ((getContentLength() > 0)
&& (getContentCount() >= getContentLength())));
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
/**
* Application commit flag accessor.
*
* @return <code>true</code> if the application has committed the response
*/
public boolean isAppCommitted() {
return this.appCommitted || isCommitted() || isSuspended()
|| ((getContentLength() > 0)
&& (getContentWritten() >= getContentLength()));
}
代码示例来源:origin: org.jboss.web/jbossweb
public void startUpgrade() {
if (isCommitted())
throw MESSAGES.cannotSendUpgrade();
if (!connector.hasIoEvents())
throw MESSAGES.cannotUpgradeWithoutEvents();
// Ignore any call from an included servlet
if (included)
return;
request.getCoyoteRequest().action(ActionCode.UPGRADE, null);
}
内容来源于网络,如有侵权,请联系作者删除!