ProtocolException if it encounters an unsupported
transfer encoding, multiple Content-Length header
values or a malformed Content-Length header value.
This class recognizes "chunked" transfer-coding only.
| Modifier and Type | Field and Description |
|---|---|
| public static final DefaultContentLengthStrategy |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public long | determineLength(final HttpMessage
HTTP message message)Implements org. |
| INSTANCE | back to summary |
|---|---|
| public static final DefaultContentLengthStrategy INSTANCE | |
| DefaultContentLengthStrategy | back to summary |
|---|---|
| public DefaultContentLengthStrategy() Creates | |
| determineLength | back to summary |
|---|---|
| public long determineLength(final HttpMessage message) throws HttpException Implements org. Doc from org. Returns length of the given message in bytes. The returned value
must be a non-negative number,
| |