Return the content length as a long. @return the content length
()
| 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. |
no test coverage detected