Package | Description |
---|---|
org.apache.http |
Core HTTP component APIs and primitives.
|
org.apache.http.client.entity |
Client specific HTTP entity implementations.
|
org.apache.http.client.methods |
Standard HTTP method implementations.
|
org.apache.http.client.utils |
Client utility classes.
|
org.apache.http.conn |
Client connection management APIs.
|
org.apache.http.entity |
Core HTTP entity implementations.
|
org.apache.http.impl |
Default implementations of HTTP connections for synchronous,
blocking communication.
|
org.apache.http.impl.client |
Default HTTP client implementation.
|
org.apache.http.impl.entity |
Default implementations of entity content strategies.
|
org.apache.http.impl.execchain |
HTTP request execution chain APIs.
|
org.apache.http.message |
Core HTTP message components, message element parser
and writer APIs and their default implementations.
|
org.apache.http.util |
Core utility classes.
|
Modifier and Type | Method and Description |
---|---|
HttpEntity |
HttpResponse.getEntity()
Obtains the message entity of this response, if any.
|
HttpEntity |
HttpEntityEnclosingRequest.getEntity()
Returns the entity associated with this request.
|
Modifier and Type | Method and Description |
---|---|
void |
HttpResponse.setEntity(HttpEntity entity)
Associates a response entity with this response.
|
void |
HttpEntityEnclosingRequest.setEntity(HttpEntity entity)
Associates the entity with this request.
|
Modifier and Type | Class and Description |
---|---|
class |
DecompressingEntity
Common base class for decompressing
HttpEntity implementations. |
class |
DeflateDecompressingEntity
HttpEntityWrapper responsible for handling
deflate Content Coded responses. |
class |
GzipCompressingEntity
Wrapping entity that compresses content when
writing . |
class |
GzipDecompressingEntity
HttpEntityWrapper for handling gzip
Content Coded responses. |
class |
UrlEncodedFormEntity
An entity composed of a list of url-encoded pairs.
|
Modifier and Type | Method and Description |
---|---|
HttpEntity |
EntityBuilder.build()
Creates new instance of
HttpEntity based on the current state. |
Constructor and Description |
---|
DecompressingEntity(HttpEntity wrapped,
InputStreamFactory inputStreamFactory)
Creates a new
DecompressingEntity . |
DeflateDecompressingEntity(HttpEntity entity)
Creates a new
DeflateDecompressingEntity which will wrap the specified
HttpEntity . |
GzipCompressingEntity(HttpEntity entity) |
GzipDecompressingEntity(HttpEntity entity)
Creates a new
GzipDecompressingEntity which will wrap the specified
HttpEntity . |
Modifier and Type | Method and Description |
---|---|
HttpEntity |
HttpRequestWrapper.HttpEntityEnclosingRequestWrapper.getEntity() |
HttpEntity |
HttpEntityEnclosingRequestBase.getEntity() |
HttpEntity |
RequestBuilder.getEntity() |
Modifier and Type | Method and Description |
---|---|
void |
HttpRequestWrapper.HttpEntityEnclosingRequestWrapper.setEntity(HttpEntity entity) |
void |
HttpEntityEnclosingRequestBase.setEntity(HttpEntity entity) |
RequestBuilder |
RequestBuilder.setEntity(HttpEntity entity) |
Modifier and Type | Method and Description |
---|---|
static boolean |
URLEncodedUtils.isEncoded(HttpEntity entity)
Returns true if the entity's Content-Type header is
application/x-www-form-urlencoded . |
static java.util.List<NameValuePair> |
URLEncodedUtils.parse(HttpEntity entity)
Returns a list of
NameValuePairs as parsed from an HttpEntity . |
Modifier and Type | Class and Description |
---|---|
class |
BasicManagedEntity
Deprecated.
(4.3) do not use.
|
Constructor and Description |
---|
BasicManagedEntity(HttpEntity entity,
ManagedClientConnection conn,
boolean reuse)
Deprecated.
Creates a new managed entity that can release a connection.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractHttpEntity
Abstract base class for entities.
|
class |
BasicHttpEntity
A generic streamed, non-repeatable entity that obtains its content
from an
InputStream . |
class |
BufferedHttpEntity
A wrapping entity that buffers it content if necessary.
|
class |
ByteArrayEntity
A self contained, repeatable entity that obtains its content from a byte array.
|
class |
EntityTemplate
Entity that delegates the process of content generation
to a
ContentProducer . |
class |
FileEntity
A self contained, repeatable entity that obtains its content from a file.
|
class |
HttpEntityWrapper
Base class for wrapping entities.
|
class |
InputStreamEntity
A streamed, non-repeatable entity that obtains its content from
an
InputStream . |
class |
SerializableEntity
A streamed entity that obtains its content from a
Serializable . |
class |
StringEntity
A self contained, repeatable entity that obtains its content from
a
String . |
Modifier and Type | Field and Description |
---|---|
protected HttpEntity |
HttpEntityWrapper.wrappedEntity
The wrapped entity.
|
Modifier and Type | Method and Description |
---|---|
static ContentType |
ContentType.get(HttpEntity entity)
Extracts
Content-Type value from HttpEntity exactly as
specified by the Content-Type header of the entity. |
static ContentType |
ContentType.getLenient(HttpEntity entity)
Extracts
Content-Type value from HttpEntity . |
static ContentType |
ContentType.getLenientOrDefault(HttpEntity entity)
Extracts
Content-Type value from HttpEntity or returns the default value
ContentType.DEFAULT_TEXT if not explicitly specified or incorrect (could not be parsed). |
static ContentType |
ContentType.getOrDefault(HttpEntity entity)
Extracts
Content-Type value from HttpEntity or returns the default value
ContentType.DEFAULT_TEXT if not explicitly specified. |
Constructor and Description |
---|
BufferedHttpEntity(HttpEntity entity)
Creates a new buffered entity wrapper.
|
HttpEntityWrapper(HttpEntity wrappedEntity)
Creates a new entity wrapper.
|
Modifier and Type | Method and Description |
---|---|
protected HttpEntity |
BHttpConnectionBase.prepareInput(HttpMessage message) |
Modifier and Type | Class and Description |
---|---|
(package private) class |
EntityEnclosingRequestWrapper.EntityWrapper
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
HttpEntity |
EntityEnclosingRequestWrapper.getEntity()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract T |
AbstractResponseHandler.handleEntity(HttpEntity entity)
Handle the response entity and transform it into the actual response
object.
|
java.lang.String |
BasicResponseHandler.handleEntity(HttpEntity entity)
Returns the entity as a body as a String.
|
void |
EntityEnclosingRequestWrapper.setEntity(HttpEntity entity)
Deprecated.
|
Constructor and Description |
---|
EntityEnclosingRequestWrapper.EntityWrapper(HttpEntity entity) |
Modifier and Type | Method and Description |
---|---|
HttpEntity |
EntityDeserializer.deserialize(SessionInputBuffer inbuffer,
HttpMessage message)
Deprecated.
Creates an
HttpEntity based on properties of the given message. |
Modifier and Type | Method and Description |
---|---|
void |
EntitySerializer.serialize(SessionOutputBuffer outbuffer,
HttpMessage message,
HttpEntity entity)
Deprecated.
Writes out the content of the given HTTP entity to the session output
buffer based on properties of the given HTTP message.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
RequestEntityProxy
A Proxy class for
HttpEntity enclosed in a request message. |
(package private) class |
ResponseEntityProxy
A wrapper class for
HttpEntity enclosed in a response message. |
Modifier and Type | Method and Description |
---|---|
HttpEntity |
HttpResponseProxy.getEntity() |
HttpEntity |
RequestEntityProxy.getOriginal() |
Modifier and Type | Method and Description |
---|---|
(package private) static boolean |
RequestEntityProxy.isEnhanced(HttpEntity entity) |
void |
HttpResponseProxy.setEntity(HttpEntity entity) |
Constructor and Description |
---|
RequestEntityProxy(HttpEntity original) |
ResponseEntityProxy(HttpEntity entity,
ConnectionHolder connHolder) |
Modifier and Type | Method and Description |
---|---|
HttpEntity |
BasicHttpEntityEnclosingRequest.getEntity() |
HttpEntity |
BasicHttpResponse.getEntity() |
Modifier and Type | Method and Description |
---|---|
void |
BasicHttpEntityEnclosingRequest.setEntity(HttpEntity entity) |
void |
BasicHttpResponse.setEntity(HttpEntity entity) |
Modifier and Type | Method and Description |
---|---|
static void |
EntityUtils.consume(HttpEntity entity)
Ensures that the entity content is fully consumed and the content stream, if exists,
is closed.
|
static void |
EntityUtils.consumeQuietly(HttpEntity entity)
Ensures that the entity content is fully consumed and the content stream, if exists,
is closed.
|
static java.lang.String |
EntityUtils.getContentCharSet(HttpEntity entity)
Deprecated.
(4.1.3) use
ContentType.getOrDefault(HttpEntity) |
static java.lang.String |
EntityUtils.getContentMimeType(HttpEntity entity)
Deprecated.
(4.1.3) use
ContentType.getOrDefault(HttpEntity) |
static byte[] |
EntityUtils.toByteArray(HttpEntity entity)
Read the contents of an entity and return it as a byte array.
|
static java.lang.String |
EntityUtils.toString(HttpEntity entity)
Read the contents of an entity and return it as a String.
|
static java.lang.String |
EntityUtils.toString(HttpEntity entity,
java.nio.charset.Charset defaultCharset)
Get the entity content as a String, using the provided default character set
if none is found in the entity.
|
static java.lang.String |
EntityUtils.toString(HttpEntity entity,
java.lang.String defaultCharset)
Get the entity content as a String, using the provided default character set
if none is found in the entity.
|
static void |
EntityUtils.updateEntity(HttpResponse response,
HttpEntity entity)
Updates an entity in a response by first consuming an existing entity, then setting the new one.
|