Skip to content

Most visited

Recently visited


org.apache.http.entity | Android Developers

to top
Android APIs
Added in API level 1


Representations for HTTP message entities. An entity is the optional content of a message. You'll find a basic selection of entity implementations here. If you need to send an entity, you can provide it for example as a byte array, string, file, or through an arbitrary input stream. If you receive a message with an entity, you typically get that as a basic entity. Entity implementations can be wrapped, for example to buffer the content in memory.


ContentLengthStrategy Represents a strategy to determine the content length based on the properties of an HTTP message. 
ContentProducer An abstract entity content producer. 


AbstractHttpEntity Abstract base class for entities. 
BasicHttpEntity A generic streamed entity being received on a connection. 
BufferedHttpEntity A wrapping entity that buffers it content if necessary. 
ByteArrayEntity An entity whose content is retrieved from a byte array. 
EntityTemplate Entity that delegates the process of content generation to an abstract content producer. 
FileEntity An entity whose content is retrieved from a file. 
HttpEntityWrapper Base class for wrapping entities. 
InputStreamEntity A streamed entity obtaining content from an InputStream
StringEntity An entity whose content is retrieved from a string. 
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.