Package org.apache.http.impl.entity
Class EntityDeserializer
- java.lang.Object
-
- org.apache.http.impl.entity.EntityDeserializer
-
@Contract(threading=IMMUTABLE_CONDITIONAL) @Deprecated public class EntityDeserializer extends java.lang.Object
Deprecated.(4.3) useBHttpConnectionBase
HTTP entity deserializer.This entity deserializer supports "chunked" and "identitiy" transfer-coding and content length delimited content.
This class relies on a specific implementation of
ContentLengthStrategy
to determine the content length or transfer encoding of the entity.This class generates an instance of
HttpEntity
based on properties of the message. The content of the entity will be decoded transparently for the consumer.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description EntityDeserializer(ContentLengthStrategy lenStrategy)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HttpEntity
deserialize(SessionInputBuffer inbuffer, HttpMessage message)
Deprecated.Creates anHttpEntity
based on properties of the given message.
-
-
-
Constructor Detail
-
EntityDeserializer
public EntityDeserializer(ContentLengthStrategy lenStrategy)
Deprecated.
-
-
Method Detail
-
deserialize
public HttpEntity deserialize(SessionInputBuffer inbuffer, HttpMessage message) throws HttpException, java.io.IOException
Deprecated.Creates anHttpEntity
based on properties of the given message. The content of the entity is created by wrappingSessionInputBuffer
with a content decoder depending on the transfer mechanism used by the message.The content of the entity is NOT retrieved by this method.
- Parameters:
inbuffer
- the session input buffer.message
- the message.- Returns:
- HTTP entity.
- Throws:
HttpException
- in case of HTTP protocol violation.java.io.IOException
- in case of an I/O error.
-
-