Android APIs
Added in API level 1
Deprecated since API level 22
public interface

ContentLengthStrategy

org.apache.http.entity.ContentLengthStrategy
Known Indirect Subclasses

This interface was deprecated in API level 22.
Please use openConnection() instead. Please visit this webpage for further details.

Class Overview

Represents a strategy to determine the content length based on the properties of an HTTP message.

Summary

Constants
int CHUNKED
int IDENTITY
Public Methods
abstract long determineLength(HttpMessage message)

Constants

public static final int CHUNKED

Added in API level 1

Constant Value: -2 (0xfffffffe)

public static final int IDENTITY

Added in API level 1

Constant Value: -1 (0xffffffff)

Public Methods

public abstract long determineLength (HttpMessage message)

Added in API level 1

Throws
HttpException