public class

LaxContentLengthStrategy

extends Object
implements ContentLengthStrategy
java.lang.Object
   ↳ org.apache.http.impl.entity.LaxContentLengthStrategy

Class Overview

The lax implementation of the content length strategy. This class will ignore unrecognized transfer encodings and malformed Content-Length header values if the STRICT_TRANSFER_ENCODING parameter of the given message is not set or set to false.

This class recognizes "chunked" and "identitiy" transfer-coding only.

The following parameters can be used to customize the behavior of this class:

Summary

[Expand]
Inherited Constants
From interface org.apache.http.entity.ContentLengthStrategy
Public Constructors
LaxContentLengthStrategy()
Public Methods
long determineLength(HttpMessage message)
Returns length of the given message in bytes.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.http.entity.ContentLengthStrategy

Public Constructors

public LaxContentLengthStrategy ()

Public Methods

public long determineLength (HttpMessage message)

Returns length of the given message in bytes. The returned value must be a non-negative number, IDENTITY if the end of the message will be delimited by the end of connection, or CHUNKED if the message is chunk coded

Returns
Throws
HttpException