@Immutable public class DisallowIdentityContentLengthStrategy extends Object implements ContentLengthStrategy
ContentLengthStrategy implementations that disallows the use of
identity transfer encoding.CHUNKED, IDENTITY| Constructor and Description |
|---|
DisallowIdentityContentLengthStrategy(ContentLengthStrategy contentLengthStrategy) |
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 ContentLengthStrategyContentLengthStrategy.IDENTITY, or ContentLengthStrategy.CHUNKEDHttpException - in case of HTTP protocol violationCopyright © 2005–2013 The Apache Software Foundation. All rights reserved.