Uses of Interface
org.apache.hc.core5.http.HttpEntity
Packages that use HttpEntity
Package
Description
Core HTTP transport component APIs.
Default implementation of HTTP/1.1 transport based on the classic
(blocking) I/O model.
HTTP message entity APIs based on the classic (blocking) I/O model.
Support classes for the classic (blocking) I/O model.
Core HTTP message components, message element parser
and writer APIs and their default implementations.
-
Uses of HttpEntity in org.apache.hc.core5.http
Methods in org.apache.hc.core5.http that return HttpEntityModifier and TypeMethodDescriptionHttpEntityContainer.getEntity()
Obtains the message entity, if available.Methods in org.apache.hc.core5.http with parameters of type HttpEntityModifier and TypeMethodDescriptionvoid
HttpEntityContainer.setEntity
(HttpEntity entity) Sets an entity for this message. -
Uses of HttpEntity in org.apache.hc.core5.http.impl.io
Classes in org.apache.hc.core5.http.impl.io that implement HttpEntityMethods in org.apache.hc.core5.http.impl.io that return HttpEntityModifier and TypeMethodDescription(package private) HttpEntity
BHttpConnectionBase.createIncomingEntity
(HttpMessage message, SessionInputBuffer inBuffer, InputStream inputStream, long len) -
Uses of HttpEntity in org.apache.hc.core5.http.io.entity
Classes in org.apache.hc.core5.http.io.entity that implement HttpEntityModifier and TypeClassDescriptionclass
Abstract base class for mutable 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
An entity that delivers the contents of aByteBuffer
.final class
Entity that delegates the process of content generation to aIOCallback
withOutputStream
as output sink.class
A self contained, repeatable entity that obtains its content from a file.class
Base class for wrapping entities that delegates all calls to the wrapped entity.class
A streamed, non-repeatable entity that obtains its content from anInputStream
.final class
An empty entity with no content-type.class
A self contained, repeatable entity that obtains its content from a path.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.hc.core5.http.io.entity declared as HttpEntityModifier and TypeFieldDescriptionprivate final HttpEntity
HttpEntityWrapper.wrappedEntity
The wrapped entity.Methods in org.apache.hc.core5.http.io.entity that return HttpEntityModifier and TypeMethodDescriptionstatic HttpEntity
HttpEntities.create
(byte[] content, ContentType contentType) static HttpEntity
HttpEntities.create
(byte[] content, ContentType contentType, Header... trailers) static HttpEntity
HttpEntities.create
(File content, ContentType contentType) static HttpEntity
HttpEntities.create
(File content, ContentType contentType, Header... trailers) static HttpEntity
HttpEntities.create
(Serializable serializable, ContentType contentType) static HttpEntity
HttpEntities.create
(Serializable serializable, ContentType contentType, Header... trailers) static HttpEntity
static HttpEntity
static HttpEntity
static HttpEntity
HttpEntities.create
(String content, ContentType contentType) static HttpEntity
HttpEntities.create
(String content, ContentType contentType, Header... trailers) static HttpEntity
static HttpEntity
HttpEntities.create
(Path content, ContentType contentType) static HttpEntity
HttpEntities.create
(Path content, ContentType contentType, Header... trailers) static HttpEntity
HttpEntities.create
(IOCallback<OutputStream> callback, ContentType contentType) static HttpEntity
HttpEntities.create
(IOCallback<OutputStream> callback, ContentType contentType, Header... trailers) static HttpEntity
HttpEntities.createGzipped
(byte[] content, ContentType contentType) static HttpEntity
HttpEntities.createGzipped
(File content, ContentType contentType) static HttpEntity
HttpEntities.createGzipped
(Serializable serializable, ContentType contentType) static HttpEntity
HttpEntities.createGzipped
(String content) static HttpEntity
HttpEntities.createGzipped
(String content, Charset charset) static HttpEntity
HttpEntities.createGzipped
(String content, ContentType contentType) static HttpEntity
HttpEntities.createGzipped
(Path content, ContentType contentType) static HttpEntity
HttpEntities.createGzipped
(IOCallback<OutputStream> callback, ContentType contentType) static HttpEntity
HttpEntities.createUrlEncoded
(Iterable<? extends NameValuePair> parameters, Charset charset) static HttpEntity
HttpEntities.gzip
(HttpEntity entity) static HttpEntity
HttpEntities.withTrailers
(HttpEntity entity, Header... trailers) Methods in org.apache.hc.core5.http.io.entity 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 HttpEntity
HttpEntities.gzip
(HttpEntity entity) static List
<NameValuePair> EntityUtils.parse
(HttpEntity entity) Returns a list ofNameValuePairs
as parsed from anHttpEntity
.static List
<NameValuePair> EntityUtils.parse
(HttpEntity entity, int maxStreamLength) Returns a list ofNameValuePairs
as parsed from anHttpEntity
.static byte[]
EntityUtils.toByteArray
(HttpEntity entity) Reads the contents of an entity and return it as a byte array.static byte[]
EntityUtils.toByteArray
(HttpEntity entity, int maxResultLength) Reads the contents of an entity and return it as a byte array.static String
EntityUtils.toString
(HttpEntity entity) Reads the contents of an entity and return it as a String.static String
EntityUtils.toString
(HttpEntity entity, int maxResultLength) Reads the contents of an entity and return it as a String.static String
EntityUtils.toString
(HttpEntity entity, String defaultCharset) Gets 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, String defaultCharset, int maxResultLength) Gets 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) Gets 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, int maxResultLength) Gets the entity content as a String, using the provided default character set if none is found in the entity.private static String
EntityUtils.toString
(HttpEntity entity, ContentType contentType, int maxResultLength) static HttpEntity
HttpEntities.withTrailers
(HttpEntity entity, Header... trailers) static void
AbstractHttpEntity.writeTo
(HttpEntity entity, OutputStream outStream) Constructors in org.apache.hc.core5.http.io.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.hc.core5.http.io.support
Fields in org.apache.hc.core5.http.io.support declared as HttpEntityModifier and TypeFieldDescriptionprivate HttpEntity
ClassicRequestBuilder.entity
private HttpEntity
ClassicResponseBuilder.entity
Methods in org.apache.hc.core5.http.io.support that return HttpEntityModifier and TypeMethodDescriptionprotected HttpEntity
AbstractHttpServerAuthFilter.generateResponseContent
(HttpResponse unauthorized) Generates response body for UNAUTHORIZED response.protected HttpEntity
HttpServerExpectationFilter.generateResponseContent
(HttpResponse expectationFailed) Generates response content entity for the final HTTP response with an error status representing the cause of expectation failure.ClassicRequestBuilder.getEntity()
ClassicResponseBuilder.getEntity()
Methods in org.apache.hc.core5.http.io.support with parameters of type HttpEntityModifier and TypeMethodDescriptionClassicRequestBuilder.setEntity
(HttpEntity entity) ClassicResponseBuilder.setEntity
(HttpEntity entity) -
Uses of HttpEntity in org.apache.hc.core5.http.message
Fields in org.apache.hc.core5.http.message declared as HttpEntityModifier and TypeFieldDescriptionprivate HttpEntity
BasicClassicHttpRequest.entity
private HttpEntity
BasicClassicHttpResponse.entity
Methods in org.apache.hc.core5.http.message that return HttpEntityModifier and TypeMethodDescriptionBasicClassicHttpRequest.getEntity()
BasicClassicHttpResponse.getEntity()
Methods in org.apache.hc.core5.http.message with parameters of type HttpEntityModifier and TypeMethodDescriptionvoid
BasicClassicHttpRequest.setEntity
(HttpEntity entity) void
BasicClassicHttpResponse.setEntity
(HttpEntity entity)