@Immutable public class DisallowIdentityContentLengthStrategy extends java.lang.Object implements ContentLengthStrategy
ContentLengthStrategy implementations that disallows the use of
identity transfer encoding.| Modifier and Type | Field and Description |
|---|---|
static DisallowIdentityContentLengthStrategy |
INSTANCE |
CHUNKED, IDENTITY| Constructor and Description |
|---|
DisallowIdentityContentLengthStrategy(ContentLengthStrategy contentLengthStrategy) |
| Modifier and Type | Method and Description |
|---|---|
long |
determineLength(HttpMessage message)
Returns length of the given message in bytes.
|
public static final DisallowIdentityContentLengthStrategy INSTANCE
public DisallowIdentityContentLengthStrategy(ContentLengthStrategy contentLengthStrategy)
public long determineLength(HttpMessage message) throws HttpException
ContentLengthStrategyContentLengthStrategy.IDENTITY if the end of the
message will be delimited by the end of connection, or ContentLengthStrategy.CHUNKED
if the message is chunk codeddetermineLength in interface ContentLengthStrategymessage - HTTP messageContentLengthStrategy.IDENTITY, or ContentLengthStrategy.CHUNKEDHttpException - in case of HTTP protocol violation