@Immutable public class StrictContentLengthStrategyHC4 extends java.lang.Object implements org.apache.http.entity.ContentLengthStrategy
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 |
|---|---|
static StrictContentLengthStrategyHC4 |
INSTANCE |
| Constructor and Description |
|---|
StrictContentLengthStrategyHC4()
Creates StrictContentLengthStrategy instance.
|
StrictContentLengthStrategyHC4(int implicitLen)
Creates StrictContentLengthStrategy instance with the given length used per default
when content length is not explicitly specified in the message.
|
| Modifier and Type | Method and Description |
|---|---|
long |
determineLength(org.apache.http.HttpMessage message) |
public static final StrictContentLengthStrategyHC4 INSTANCE
public StrictContentLengthStrategyHC4(int implicitLen)
implicitLen - implicit content length.public StrictContentLengthStrategyHC4()
ContentLengthStrategy.IDENTITY
is used per default when content length is not explicitly specified in the message.Copyright © 1999-2015 The Apache Software Foundation. All rights reserved.