@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
ContentLengthStrategy
ContentLengthStrategy.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 ContentLengthStrategy
ContentLengthStrategy.IDENTITY
, or ContentLengthStrategy.CHUNKED
HttpException
- in case of HTTP protocol violationCopyright © 2005-2015 The Apache Software Foundation. All Rights Reserved.