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

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

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

Response.getContentLength介绍

[英]Return the content length that was set or calculated for this Response.
[中]返回为此响应设置或计算的内容长度。

代码示例

代码示例来源:origin: ch.qos.logback/logback-access

@Override
public long getContentLength() {
  return response.getContentLength();
}

代码示例来源: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: com.ovea.tajin.servers/tajin-server-jetty9

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

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

/**
 * Application commit flag accessor.
 */
public boolean isAppCommitted() {
  return (this.appCommitted || isCommitted() || isSuspended()
      || ((getContentLength() > 0) 
        && (getContentCount() >= 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.jboss.web/jbossweb

/**
 * 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: 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: tomcat/catalina

/**
 * Application commit flag accessor.
 */
public boolean isAppCommitted() {
  return (this.appCommitted || isCommitted() || isSuspended()
      || ((getContentLength() > 0) 
        && (getContentCount() >= 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

log.info("     contentLength=" + response.getContentLength());
log.info("       contentType=" + response.getContentType());
Cookie rcookies[] = response.getCookies();

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

log.info("     contentLength=" + response.getContentLength());
log.info("       contentType=" + response.getContentType());
Cookie rcookies[] = response.getCookies();

代码示例来源:origin: tomcat/catalina-optional

log.info("     contentLength=" + response.getContentLength());
log.info("       contentType=" + response.getContentType());
Cookie rcookies[] = response.getCookies();

代码示例来源:origin: tomcat/catalina

value = "" + length;
} else if (pattern == 'B') {
  value = "" + response.getContentLength();
} else if (pattern == 'h') {
  value = request.getRemoteHost();

相关文章

Response类方法