org.apache.catalina.connector.Response.getContentWritten()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(5.2k)|赞(0)|评价(0)|浏览(258)

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

Response.getContentWritten介绍

[英]Return the number of bytes the application has actually written to the output stream. This excludes chunking, compression, etc. as well as headers.
[中]返回应用程序实际写入输出流的字节数。这不包括分块、压缩等以及标题。

代码示例

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

public long getContentWritten() {
  if (response == null) {
    throw new IllegalStateException(
            sm.getString("responseFacade.nullResponse"));
  }
  return response.getContentWritten();
}

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

public long getContentWritten() {
  if (response == null) {
    throw new IllegalStateException(
            sm.getString("responseFacade.nullResponse"));
  }
  return response.getContentWritten();
}

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

public long getContentWritten() {
  if (response == null) {
    throw new IllegalStateException(
            sm.getString("responseFacade.nullResponse"));
  }
  return response.getContentWritten();
}

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

public long getContentWritten() {
  if (response == null) {
    throw new IllegalStateException(
            sm.getString("responseFacade.nullResponse"));
  }
  return response.getContentWritten();
}

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

public long getContentWritten() {
  if (response == null) {
    throw new IllegalStateException(
            sm.getString("responseFacade.nullResponse"));
  }
  return response.getContentWritten();
}

代码示例来源: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: codefollower/Tomcat-Research

/**
 * Application commit flag accessor.
 */
public boolean isAppCommitted() {
  return (this.appCommitted || isCommitted() || isSuspended()
      || ((getContentLength() > 0)
        && (getContentWritten() >= 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: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Application commit flag accessor.
 */
public boolean isAppCommitted() {
  return (this.appCommitted || isCommitted() || isSuspended()
      || ((getContentLength() > 0) 
        && (getContentWritten() >= 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: org.apache.geronimo.ext.tomcat/catalina

/**
 * Application commit flag accessor.
 */
public boolean isAppCommitted() {
  return (this.appCommitted || isCommitted() || isSuspended()
      || ((getContentLength() > 0)
        && (getContentWritten() >= getContentLength())));
}

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

/**
 * Application commit flag accessor.
 */
public boolean isAppCommitted() {
  return (this.appCommitted || isCommitted() || isSuspended()
      || ((getContentLength() > 0) 
        && (getContentWritten() >= 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: com.ovea.tajin.server/tajin-server-tomcat7

if ((statusCode < 400) || (response.getContentWritten() > 0))
  return;

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

if ((statusCode < 400) || (response.getContentWritten() > 0)) {
  return;

代码示例来源:origin: fujitsu-pio/io

int statusCode = response.getStatus();
if (statusCode < HTTP_STATUS_BAD_REQUEST || (response.getContentWritten() > 0)) {
  return;

代码示例来源:origin: com.tomitribe.tribestream/tribestream-container

if (statusCode >= 400 && response.getContentWritten() <= 0L) {

代码示例来源:origin: org.apache.tomee/tomee-catalina

final Throwable throwable) {
final int statusCode = response.getStatus();
if (statusCode < 400 || response.getContentWritten() > 0 ||
    !response.isError()) {
  return;

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

if (request != null && request.getHost() != null) {
  messageKey = "coyoteAdapter.checkRecycled.request";
} else if (response != null && response.getContentWritten() != 0) {
  messageKey = "coyoteAdapter.checkRecycled.response";

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

if (request != null && request.getHost() != null) {
  messageKey = "coyoteAdapter.checkRecycled.request";
} else if (response != null && response.getContentWritten() != 0) {
  messageKey = "coyoteAdapter.checkRecycled.response";

相关文章

Response类方法