public class

StrictContentLengthStrategy

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

Class Overview

The strict implementation of the content length strategy. This class will throw ProtocolException if it encounters an unsupported transfer encoding or a malformed Content-Length header value.

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

Summary

[Expand]
Inherited Constants
From interface org.apache.http.entity.ContentLengthStrategy
Public Constructors
StrictContentLengthStrategy()
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 StrictContentLengthStrategy ()

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