public class

EntityDeserializer

extends Object
java.lang.Object
   ↳ org.apache.http.impl.entity.EntityDeserializer

Class Overview

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.

Summary

Public Constructors
EntityDeserializer(ContentLengthStrategy lenStrategy)
Public Methods
HttpEntity deserialize(SessionInputBuffer inbuffer, HttpMessage message)
Creates an HttpEntity based on properties of the given message.
Protected Methods
BasicHttpEntity doDeserialize(SessionInputBuffer inbuffer, HttpMessage message)
Creates a BasicHttpEntity based on properties of the given message.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public EntityDeserializer (ContentLengthStrategy lenStrategy)

Public Methods

public HttpEntity deserialize (SessionInputBuffer inbuffer, HttpMessage message)

Creates an HttpEntity based on properties of the given message. The content of the entity is created by wrapping SessionInputBuffer 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.
IOException in case of an I/O error.

Protected Methods

protected BasicHttpEntity doDeserialize (SessionInputBuffer inbuffer, HttpMessage message)

Creates a BasicHttpEntity based on properties of the given message. The content of the entity is created by wrapping SessionInputBuffer with 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.
IOException in case of an I/O error.