org.apache.http.entity.ContentLengthStrategy |
Known Indirect Subclasses
|
Class Overview
Represents a strategy to determine length of the enclosed content entity
based on properties of the HTTP message.
Constants
public
static
final
int
CHUNKED
Constant Value:
-2
(0xfffffffe)
public
static
final
int
IDENTITY
Constant Value:
-1
(0xffffffff)
Public Methods
public
abstract
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