@Contract(threading=IMMUTABLE_CONDITIONAL) public class DisallowIdentityContentLengthStrategy extends 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) |
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 violationCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.