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.
Default implementations of HTTP connections for asynchronous,
even driven communication.
Core HTTP message components, message element parser
and writer APIs and their default implementations.
Core HTTP entity implementations with support for
asynchronous, event driven communication.
Core HTTP protocol execution framework and HTTP protocol handlers
for asynchronous, event driven communication.
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 TypeMethodDescriptionvoidHttpEntityEnclosingRequest.setEntity(HttpEntity entity) Associates the entity with this request.voidHttpResponse.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 TypeClassDescriptionclassAbstract base class for 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.classEntity that delegates the process of content generation to aContentProducer.classA self contained, repeatable entity that obtains its content from a file.classBase class for wrapping entities.classA streamed, non-repeatable entity that obtains its content from anInputStream.classA streamed entity that obtains its content from aSerializable.classA self contained, repeatable entity that obtains its content from aString.Fields in org.apache.http.entity declared as HttpEntityModifier and TypeFieldDescriptionprotected HttpEntityHttpEntityWrapper.wrappedEntityThe wrapped entity.Methods in org.apache.http.entity with parameters of type HttpEntityModifier and TypeMethodDescriptionstatic ContentTypeContentType.get(HttpEntity entity) ExtractsContent-Typevalue fromHttpEntityexactly as specified by theContent-Typeheader of the entity.static ContentTypeContentType.getLenient(HttpEntity entity) ExtractsContent-Typevalue fromHttpEntity.static ContentTypeContentType.getLenientOrDefault(HttpEntity entity) ExtractsContent-Typevalue fromHttpEntityor returns the default valueContentType.DEFAULT_TEXTif not explicitly specified or incorrect (could not be parsed).static ContentTypeContentType.getOrDefault(HttpEntity entity) ExtractsContent-Typevalue fromHttpEntityor returns the default valueContentType.DEFAULT_TEXTif 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 HttpEntityBHttpConnectionBase.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 anHttpEntitybased on properties of the given message.Methods in org.apache.http.impl.entity with parameters of type HttpEntityModifier and TypeMethodDescriptionvoidEntitySerializer.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.impl.nio
Methods in org.apache.http.impl.nio that return HttpEntityModifier and TypeMethodDescriptionprotected HttpEntityNHttpConnectionBase.prepareDecoder(HttpMessage message) Initializes a specificContentDecoderimplementation based on the properties of the givenHttpMessageand generates an instance ofHttpEntitymatching the properties of the content decoder. -
Uses of HttpEntity in org.apache.http.message
Fields in org.apache.http.message declared as HttpEntityModifier and TypeFieldDescriptionprivate HttpEntityBasicHttpEntityEnclosingRequest.entityprivate HttpEntityBasicHttpResponse.entityMethods 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 TypeMethodDescriptionvoidBasicHttpEntityEnclosingRequest.setEntity(HttpEntity entity) voidBasicHttpResponse.setEntity(HttpEntity entity) -
Uses of HttpEntity in org.apache.http.nio.entity
Subinterfaces of HttpEntity in org.apache.http.nio.entityModifier and TypeInterfaceDescriptioninterfaceDeprecated.interfaceDeprecated.use (4.2)BasicAsyncRequestProducerorBasicAsyncResponseProducerClasses in org.apache.http.nio.entity that implement HttpEntityModifier and TypeClassDescriptionclassDeprecated.use (4.2)BasicAsyncRequestProducerorBasicAsyncResponseProducerclassDeprecated.use (4.2)BasicAsyncRequestProducerorBasicAsyncResponseProducerclassHTTP entity wrapper whose content is provided by aContentInputBuffer.classA simple self contained, repeatable non-blocking entity that retrieves its content from a byte array.classA self contained, repeatable non-blocking entity that retrieves its content from a file.classDeprecated.(4.2) useEntityAsyncContentProducerclassA simple, self contained, repeatable non-blocking entity that retrieves its content from aStringobject.Fields in org.apache.http.nio.entity declared as HttpEntityModifier and TypeFieldDescriptionprivate final HttpEntityEntityAsyncContentProducer.entityprivate final HttpEntityContentBufferEntity.wrappedEntityConstructors in org.apache.http.nio.entity with parameters of type HttpEntityModifierConstructorDescriptionBufferingNHttpEntity(HttpEntity httpEntity, ByteBufferAllocator allocator) Deprecated.ConsumingNHttpEntityTemplate(HttpEntity httpEntity, ContentListener contentListener) Deprecated.ContentBufferEntity(HttpEntity entity, ContentInputBuffer buffer) Creates new instance of ContentBufferEntity.EntityAsyncContentProducer(HttpEntity entity) NHttpEntityWrapper(HttpEntity httpEntity) Deprecated. -
Uses of HttpEntity in org.apache.http.nio.protocol
Classes in org.apache.http.nio.protocol that implement HttpEntityFields in org.apache.http.nio.protocol declared as HttpEntityMethods in org.apache.http.nio.protocol with parameters of type HttpEntityModifier and TypeMethodDescriptionprotected ContentTypeAbstractAsyncResponseConsumer.getContentType(HttpEntity entity) protected abstract voidAbstractAsyncRequestConsumer.onEntityEnclosed(HttpEntity entity, ContentType contentType) Invoked if the request message encloses a content entity.protected abstract voidAbstractAsyncResponseConsumer.onEntityEnclosed(HttpEntity entity, ContentType contentType) Invoked if the response message encloses a content entity.protected voidBasicAsyncRequestConsumer.onEntityEnclosed(HttpEntity entity, ContentType contentType) protected voidBasicAsyncResponseConsumer.onEntityEnclosed(HttpEntity entity, ContentType contentType) Constructors in org.apache.http.nio.protocol with parameters of type HttpEntityModifierConstructorDescriptionErrorResponseProducer(HttpResponse response, HttpEntity entity, boolean keepAlive) NullNHttpEntity(HttpEntity httpEntity) Deprecated. -
Uses of HttpEntity in org.apache.http.util
Methods in org.apache.http.util 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 StringEntityUtils.getContentCharSet(HttpEntity entity) Deprecated.(4.1.3) useContentType.getOrDefault(HttpEntity)static StringEntityUtils.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 StringEntityUtils.toString(HttpEntity entity) Read the contents of an entity and return it as a String.static StringEntityUtils.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 StringEntityUtils.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.private static StringEntityUtils.toString(HttpEntity entity, ContentType contentType) static voidEntityUtils.updateEntity(HttpResponse response, HttpEntity entity) Updates an entity in a response by first consuming an existing entity, then setting the new one.
BasicAsyncRequestProducerorBasicAsyncResponseProducer