org.simpleframework.http.Request.getContentLength()方法的使用及代码示例

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

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

Request.getContentLength介绍

暂无

代码示例

代码示例来源:origin: org.simpleframework/simple-http

/**
* This is a convenience method that can be used to determine
* the length of the message body. This will determine if there
* is a <code>Content-Length</code> header, if it does then the
* length can be determined, if not then this returns -1.
*
* @return the content length, or -1 if it cannot be determined
*/
public long getContentLength() {
 return request.getContentLength();
}

代码示例来源:origin: org.simpleframework/simple

/**
* This is a convenience method that can be used to determine
* the length of the message body. This will determine if there
* is a <code>Content-Length</code> header, if it does then the
* length can be determined, if not then this returns -1.
*
* @return the content length, or -1 if it cannot be determined
*/
public long getContentLength() {
 return request.getContentLength();
}

代码示例来源:origin: org.restlet/org.restlet.ext.simple

@Override
protected long getContentLength() {
  return request.getContentLength();
}

代码示例来源:origin: ngallagher/simpleframework

/**
* This is a convenience method that can be used to determine
* the length of the message body. This will determine if there
* is a <code>Content-Length</code> header, if it does then the
* length can be determined, if not then this returns -1.
*
* @return the content length, or -1 if it cannot be determined
*/
public long getContentLength() {
 return request.getContentLength();
}

代码示例来源:origin: lantunes/fixd

public long getContentLength() {
  
  return request.getContentLength();
}

相关文章