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 TypeMethodDescriptionvoidHttpEntityContainer.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) HttpEntityBHttpConnectionBase.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 TypeClassDescriptionclassAbstract base class for mutable entities.classA generic streamed, non-repeatable entity that obtains its content from anInputStream.classA wrapping entity that buffers it content if necessary.classA self contained, repeatable entity that obtains its content from a byte array.classAn entity that delivers the contents of aByteBuffer.final classEntity that delegates the process of content generation to aIOCallbackwithOutputStreamas output sink.classA self contained, repeatable entity that obtains its content from a file.classBase class for wrapping entities that delegates all calls to the wrapped entity.classA streamed, non-repeatable entity that obtains its content from anInputStream.final classAn empty entity with no content-type.classA self contained, repeatable entity that obtains its content from a path.classA streamed entity that obtains its content from aSerializable.classA 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 HttpEntityHttpEntityWrapper.wrappedEntityThe wrapped entity.Methods in org.apache.hc.core5.http.io.entity that return HttpEntityModifier and TypeMethodDescriptionstatic HttpEntityHttpEntities.create(byte[] content, ContentType contentType) static HttpEntityHttpEntities.create(byte[] content, ContentType contentType, Header... trailers) static HttpEntityHttpEntities.create(File content, ContentType contentType) static HttpEntityHttpEntities.create(File content, ContentType contentType, Header... trailers) static HttpEntityHttpEntities.create(Serializable serializable, ContentType contentType) static HttpEntityHttpEntities.create(Serializable serializable, ContentType contentType, Header... trailers) static HttpEntitystatic HttpEntitystatic HttpEntitystatic HttpEntityHttpEntities.create(String content, ContentType contentType) static HttpEntityHttpEntities.create(String content, ContentType contentType, Header... trailers) static HttpEntitystatic HttpEntityHttpEntities.create(Path content, ContentType contentType) static HttpEntityHttpEntities.create(Path content, ContentType contentType, Header... trailers) static HttpEntityHttpEntities.create(IOCallback<OutputStream> callback, ContentType contentType) static HttpEntityHttpEntities.create(IOCallback<OutputStream> callback, ContentType contentType, Header... trailers) static HttpEntityHttpEntities.createGzipped(byte[] content, ContentType contentType) static HttpEntityHttpEntities.createGzipped(File content, ContentType contentType) static HttpEntityHttpEntities.createGzipped(Serializable serializable, ContentType contentType) static HttpEntityHttpEntities.createGzipped(String content) static HttpEntityHttpEntities.createGzipped(String content, Charset charset) static HttpEntityHttpEntities.createGzipped(String content, ContentType contentType) static HttpEntityHttpEntities.createGzipped(Path content, ContentType contentType) static HttpEntityHttpEntities.createGzipped(IOCallback<OutputStream> callback, ContentType contentType) static HttpEntityHttpEntities.createUrlEncoded(Iterable<? extends NameValuePair> parameters, Charset charset) static HttpEntityHttpEntities.gzip(HttpEntity entity) static HttpEntityHttpEntities.withTrailers(HttpEntity entity, Header... trailers) Methods in org.apache.hc.core5.http.io.entity with parameters of type HttpEntityModifier and TypeMethodDescriptionstatic voidEntityUtils.consume(HttpEntity entity) Ensures that the entity content is fully consumed and the content stream, if exists, is closed.static voidEntityUtils.consumeQuietly(HttpEntity entity) Ensures that the entity content is fully consumed and the content stream, if exists, is closed.static HttpEntityHttpEntities.gzip(HttpEntity entity) static List<NameValuePair> EntityUtils.parse(HttpEntity entity) Returns a list ofNameValuePairsas parsed from anHttpEntity.static List<NameValuePair> EntityUtils.parse(HttpEntity entity, int maxStreamLength) Returns a list ofNameValuePairsas 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 StringEntityUtils.toString(HttpEntity entity) Reads the contents of an entity and return it as a String.static StringEntityUtils.toString(HttpEntity entity, int maxResultLength) Reads the contents of an entity and return it as a String.static StringEntityUtils.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 StringEntityUtils.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 StringEntityUtils.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 StringEntityUtils.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 StringEntityUtils.toString(HttpEntity entity, ContentType contentType, int maxResultLength) static HttpEntityHttpEntities.withTrailers(HttpEntity entity, Header... trailers) static voidAbstractHttpEntity.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 HttpEntityClassicRequestBuilder.entityprivate HttpEntityClassicResponseBuilder.entityMethods in org.apache.hc.core5.http.io.support that return HttpEntityModifier and TypeMethodDescriptionprotected HttpEntityAbstractHttpServerAuthFilter.generateResponseContent(HttpResponse unauthorized) Generates response body for UNAUTHORIZED response.protected HttpEntityHttpServerExpectationFilter.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 HttpEntityBasicClassicHttpRequest.entityprivate HttpEntityBasicClassicHttpResponse.entityMethods 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 TypeMethodDescriptionvoidBasicClassicHttpRequest.setEntity(HttpEntity entity) voidBasicClassicHttpResponse.setEntity(HttpEntity entity)