Uses of Interface
org.apache.hc.core5.http.HttpEntity
-
Packages that use HttpEntity Package Description org.apache.hc.core5.http Core HTTP transport component APIs.org.apache.hc.core5.http.impl.io Default implementation of HTTP/1.1 transport based on the classic (blocking) I/O model.org.apache.hc.core5.http.io.entity HTTP message entity APIs based on the classic (blocking) I/O model.org.apache.hc.core5.http.io.support Support classes for the classic (blocking) I/O model.org.apache.hc.core5.http.message 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 HttpEntity Modifier and Type Method Description HttpEntity
HttpEntityContainer. getEntity()
Obtains the message entity, if available.Methods in org.apache.hc.core5.http with parameters of type HttpEntity Modifier and Type Method Description void
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 HttpEntity Modifier and Type Class Description (package private) class
IncomingHttpEntity
Methods in org.apache.hc.core5.http.impl.io that return HttpEntity Modifier and Type Method Description (package private) HttpEntity
BHttpConnectionBase. createIncomingEntity(HttpMessage message, SessionInputBuffer inBuffer, java.io.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 HttpEntity Modifier and Type Class Description class
AbstractHttpEntity
Abstract base class for mutable entities.class
BasicHttpEntity
A generic streamed, non-repeatable entity that obtains its content from anInputStream
.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
ByteBufferEntity
An entity that delivers the contents of aByteBuffer
.class
EntityTemplate
Entity that delegates the process of content generation to aIOCallback
withOutputStream
as output sink.class
FileEntity
A self contained, repeatable entity that obtains its content from a file.class
HttpEntityWrapper
Base class for wrapping entities that delegates all calls to the wrapped entity.class
InputStreamEntity
A streamed, non-repeatable entity that obtains its content from anInputStream
.class
NullEntity
An empty entity with no content-type.class
PathEntity
A self contained, repeatable entity that obtains its content from a path.class
SerializableEntity
A streamed entity that obtains its content from aSerializable
.class
StringEntity
A self contained, repeatable entity that obtains its content from aString
.Fields in org.apache.hc.core5.http.io.entity declared as HttpEntity Modifier and Type Field Description private HttpEntity
HttpEntityWrapper. wrappedEntity
The wrapped entity.Methods in org.apache.hc.core5.http.io.entity that return HttpEntity Modifier and Type Method Description static HttpEntity
HttpEntities. create(byte[] content, ContentType contentType)
static HttpEntity
HttpEntities. create(byte[] content, ContentType contentType, Header... trailers)
static HttpEntity
HttpEntities. create(java.io.File content, ContentType contentType)
static HttpEntity
HttpEntities. create(java.io.File content, ContentType contentType, Header... trailers)
static HttpEntity
HttpEntities. create(java.io.Serializable serializable, ContentType contentType)
static HttpEntity
HttpEntities. create(java.io.Serializable serializable, ContentType contentType, Header... trailers)
static HttpEntity
HttpEntities. create(java.lang.String content)
static HttpEntity
HttpEntities. create(java.lang.String content, java.nio.charset.Charset charset)
static HttpEntity
HttpEntities. create(java.lang.String content, java.nio.charset.Charset charset, Header... trailers)
static HttpEntity
HttpEntities. create(java.lang.String content, ContentType contentType)
static HttpEntity
HttpEntities. create(java.lang.String content, ContentType contentType, Header... trailers)
static HttpEntity
HttpEntities. create(java.lang.String content, Header... trailers)
static HttpEntity
HttpEntities. create(java.nio.file.Path content, ContentType contentType)
static HttpEntity
HttpEntities. create(java.nio.file.Path content, ContentType contentType, Header... trailers)
static HttpEntity
HttpEntities. create(IOCallback<java.io.OutputStream> callback, ContentType contentType)
static HttpEntity
HttpEntities. create(IOCallback<java.io.OutputStream> callback, ContentType contentType, Header... trailers)
static HttpEntity
HttpEntities. createGzipped(byte[] content, ContentType contentType)
static HttpEntity
HttpEntities. createGzipped(java.io.File content, ContentType contentType)
static HttpEntity
HttpEntities. createGzipped(java.io.Serializable serializable, ContentType contentType)
static HttpEntity
HttpEntities. createGzipped(java.lang.String content)
static HttpEntity
HttpEntities. createGzipped(java.lang.String content, java.nio.charset.Charset charset)
static HttpEntity
HttpEntities. createGzipped(java.lang.String content, ContentType contentType)
static HttpEntity
HttpEntities. createGzipped(java.nio.file.Path content, ContentType contentType)
static HttpEntity
HttpEntities. createGzipped(IOCallback<java.io.OutputStream> callback, ContentType contentType)
static HttpEntity
HttpEntities. createUrlEncoded(java.lang.Iterable<? extends NameValuePair> parameters, java.nio.charset.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 HttpEntity Modifier and Type Method 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 HttpEntity
HttpEntities. gzip(HttpEntity entity)
static java.util.List<NameValuePair>
EntityUtils. parse(HttpEntity entity)
Returns a list ofNameValuePairs
as parsed from anHttpEntity
.static java.util.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 java.lang.String
EntityUtils. toString(HttpEntity entity)
Reads the contents of an entity and return it as a String.static java.lang.String
EntityUtils. toString(HttpEntity entity, int maxResultLength)
Reads the contents of an entity and return it as a String.static java.lang.String
EntityUtils. toString(HttpEntity entity, java.lang.String defaultCharset)
Gets 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, int maxResultLength)
Gets 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.nio.charset.Charset defaultCharset)
Gets 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.nio.charset.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 java.lang.String
EntityUtils. toString(HttpEntity entity, ContentType contentType, int maxResultLength)
static HttpEntity
HttpEntities. withTrailers(HttpEntity entity, Header... trailers)
static void
AbstractHttpEntity. writeTo(HttpEntity entity, java.io.OutputStream outStream)
Constructors in org.apache.hc.core5.http.io.entity with parameters of type HttpEntity Constructor Description BufferedHttpEntity(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 HttpEntity Modifier and Type Field Description private HttpEntity
ClassicRequestBuilder. entity
private HttpEntity
ClassicResponseBuilder. entity
Methods in org.apache.hc.core5.http.io.support that return HttpEntity Modifier and Type Method Description protected 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.HttpEntity
ClassicRequestBuilder. getEntity()
HttpEntity
ClassicResponseBuilder. getEntity()
Methods in org.apache.hc.core5.http.io.support with parameters of type HttpEntity Modifier and Type Method Description ClassicRequestBuilder
ClassicRequestBuilder. setEntity(HttpEntity entity)
ClassicResponseBuilder
ClassicResponseBuilder. setEntity(HttpEntity entity)
-
Uses of HttpEntity in org.apache.hc.core5.http.message
Fields in org.apache.hc.core5.http.message declared as HttpEntity Modifier and Type Field Description private HttpEntity
BasicClassicHttpRequest. entity
private HttpEntity
BasicClassicHttpResponse. entity
Methods in org.apache.hc.core5.http.message that return HttpEntity Modifier and Type Method Description HttpEntity
BasicClassicHttpRequest. getEntity()
HttpEntity
BasicClassicHttpResponse. getEntity()
Methods in org.apache.hc.core5.http.message with parameters of type HttpEntity Modifier and Type Method Description void
BasicClassicHttpRequest. setEntity(HttpEntity entity)
void
BasicClassicHttpResponse. setEntity(HttpEntity entity)
-