Uses of Interface
org.apache.http.HttpEntity
Packages that use HttpEntity
Package
Description
Core HTTP component APIs and primitives.
Core HTTP entity implementations.
Default implementations of HTTP connections for synchronous,
blocking communication.
Default implementations of entity content strategies.
Core HTTP message components, message element parser
and writer APIs and their default implementations.
Core utility classes.
-
Uses of HttpEntity in org.apache.http
Methods in org.apache.http that return HttpEntityModifier and TypeMethodDescriptionHttpEntityEnclosingRequest.getEntity()
Returns the entity associated with this request.HttpResponse.getEntity()
Obtains the message entity of this response, if any.Methods in org.apache.http with parameters of type HttpEntityModifier and TypeMethodDescriptionvoid
HttpEntityEnclosingRequest.setEntity
(HttpEntity entity) Associates the entity with this request.void
HttpResponse.setEntity
(HttpEntity entity) Associates a response entity with this response. -
Uses of HttpEntity in org.apache.http.entity
Classes in org.apache.http.entity that implement HttpEntityModifier and TypeClassDescriptionclass
Abstract base class for entities.class
A generic streamed, non-repeatable entity that obtains its content from anInputStream
.class
A wrapping entity that buffers it content if necessary.class
A self contained, repeatable entity that obtains its content from a byte array.class
Entity that delegates the process of content generation to aContentProducer
.class
A self contained, repeatable entity that obtains its content from a file.class
Base class for wrapping entities.class
A streamed, non-repeatable entity that obtains its content from anInputStream
.class
A streamed entity that obtains its content from aSerializable
.class
A self contained, repeatable entity that obtains its content from aString
.Fields in org.apache.http.entity declared as HttpEntityModifier and TypeFieldDescriptionprotected HttpEntity
HttpEntityWrapper.wrappedEntity
The wrapped entity.Methods in org.apache.http.entity with parameters of type HttpEntityModifier and TypeMethodDescriptionstatic ContentType
ContentType.get
(HttpEntity entity) ExtractsContent-Type
value fromHttpEntity
exactly as specified by theContent-Type
header of the entity.static ContentType
ContentType.getLenient
(HttpEntity entity) ExtractsContent-Type
value fromHttpEntity
.static ContentType
ContentType.getLenientOrDefault
(HttpEntity entity) ExtractsContent-Type
value fromHttpEntity
or returns the default valueContentType.DEFAULT_TEXT
if not explicitly specified or incorrect (could not be parsed).static ContentType
ContentType.getOrDefault
(HttpEntity entity) ExtractsContent-Type
value fromHttpEntity
or returns the default valueContentType.DEFAULT_TEXT
if not explicitly specified.Constructors in org.apache.http.entity with parameters of type HttpEntityModifierConstructorDescriptionBufferedHttpEntity
(HttpEntity entity) Creates a new buffered entity wrapper.HttpEntityWrapper
(HttpEntity wrappedEntity) Creates a new entity wrapper. -
Uses of HttpEntity in org.apache.http.impl
Methods in org.apache.http.impl that return HttpEntityModifier and TypeMethodDescriptionprotected HttpEntity
BHttpConnectionBase.prepareInput
(HttpMessage message) -
Uses of HttpEntity in org.apache.http.impl.entity
Methods in org.apache.http.impl.entity that return HttpEntityModifier and TypeMethodDescriptionEntityDeserializer.deserialize
(SessionInputBuffer inBuffer, HttpMessage message) Deprecated.Creates anHttpEntity
based on properties of the given message.Methods in org.apache.http.impl.entity with parameters of type HttpEntityModifier and TypeMethodDescriptionvoid
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. -
Uses of HttpEntity in org.apache.http.message
Methods in org.apache.http.message that return HttpEntityModifier and TypeMethodDescriptionBasicHttpEntityEnclosingRequest.getEntity()
BasicHttpResponse.getEntity()
Methods in org.apache.http.message with parameters of type HttpEntityModifier and TypeMethodDescriptionvoid
BasicHttpEntityEnclosingRequest.setEntity
(HttpEntity entity) void
BasicHttpResponse.setEntity
(HttpEntity entity) -
Uses of HttpEntity in org.apache.http.util
Methods in org.apache.http.util with parameters of type HttpEntityModifier and TypeMethodDescriptionstatic 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 String
EntityUtils.getContentCharSet
(HttpEntity entity) Deprecated.static String
EntityUtils.getContentMimeType
(HttpEntity entity) Deprecated.(4.1.3) useContentType.getOrDefault(HttpEntity)
static byte[]
EntityUtils.toByteArray
(HttpEntity entity) Read the contents of an entity and return it as a byte array.static String
EntityUtils.toString
(HttpEntity entity) Read the contents of an entity and return it as a String.static String
EntityUtils.toString
(HttpEntity entity, String defaultCharset) Get the entity content as a String, using the provided default character set if none is found in the entity.static String
EntityUtils.toString
(HttpEntity entity, Charset 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.
ContentType.getOrDefault(HttpEntity)