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) useBHttpConnectionBaseHTTP entity deserializer.This entity deserializer supports "chunked" and "identitiy" transfer-coding and content length delimited content.
This class relies on a specific implementation of
ContentLengthStrategyto determine the content length or transfer encoding of the entity.This class generates an instance of
HttpEntitybased on properties of the message. The content of the entity will be decoded transparently for the consumer.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description private ContentLengthStrategylenStrategyDeprecated.
-
Constructor Summary
Constructors Constructor Description EntityDeserializer(ContentLengthStrategy lenStrategy)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HttpEntitydeserialize(SessionInputBuffer inBuffer, HttpMessage message)Deprecated.Creates anHttpEntitybased on properties of the given message.protected BasicHttpEntitydoDeserialize(SessionInputBuffer inBuffer, HttpMessage message)Deprecated.Creates aBasicHttpEntitybased on properties of the given message.
-
-
-
Field Detail
-
lenStrategy
private final ContentLengthStrategy lenStrategy
Deprecated.
-
-
Constructor Detail
-
EntityDeserializer
public EntityDeserializer(ContentLengthStrategy lenStrategy)
Deprecated.
-
-
Method Detail
-
doDeserialize
protected BasicHttpEntity doDeserialize(SessionInputBuffer inBuffer, HttpMessage message) throws HttpException, java.io.IOException
Deprecated.Creates aBasicHttpEntitybased on properties of the given message. The content of the entity is created by wrappingSessionInputBufferwith a content decoder depending on the transfer mechanism used by the message.This method is called by the public
deserialize(SessionInputBuffer, HttpMessage).- 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.
-
deserialize
public HttpEntity deserialize(SessionInputBuffer inBuffer, HttpMessage message) throws HttpException, java.io.IOException
Deprecated.Creates anHttpEntitybased on properties of the given message. The content of the entity is created by wrappingSessionInputBufferwith 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.
-
-