ProtocolException if it encounters an unsupported
transfer encoding or a malformed Content-Length header
value.
This class recognizes "chunked" and "identitiy" transfer-coding only.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| public static final StrictContentLengthStrategy |
| Access | Constructor and Description |
|---|---|
| public | StrictContentLengthStrategy(final int
implicit content length. implicitLen)Creates |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public long | determineLength(final HttpMessage
HTTP message message)Implements org. |
| implicitLen | back to summary |
|---|---|
| private final int implicitLen | |
| INSTANCE | back to summary |
|---|---|
| public static final StrictContentLengthStrategy INSTANCE | |
| StrictContentLengthStrategy | back to summary |
|---|---|
| public StrictContentLengthStrategy(final int implicitLen) Creates
| |
| StrictContentLengthStrategy | back to summary |
|---|---|
| public StrictContentLengthStrategy() 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,
| |