MCPcopy Index your code
hub / github.com/apache/tomcat / getContentLengthLong

Method getContentLengthLong

java/org/apache/coyote/Request.java:678–687  ·  view source on GitHub ↗

Return the content length as a long. @return the content length

()

Source from the content-addressed store, hash-verified

676 * @return the content length
677 */
678 public long getContentLengthLong() {
679 if (contentLength > -1) {
680 return contentLength;
681 }
682
683 MessageBytes clB = headers.getUniqueValue("content-length");
684 contentLength = (clB == null || clB.isNull()) ? -1 : clB.getLong();
685
686 return contentLength;
687 }
688
689 /**
690 * Return the content type as a string.

Callers 1

getContentLengthMethod · 0.95

Calls 3

isNullMethod · 0.95
getLongMethod · 0.95
getUniqueValueMethod · 0.80

Tested by

no test coverage detected