Deprecated
(4.3) use org.
This entity serializer currently 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 writes out the content of HttpEntity to the data stream
using a transfer coding based on properties on the HTTP message.
| Modifier and Type | Field and Description |
|---|---|
| private final ContentLengthStrategy |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected OutputStream | Returns: output stream.the session output buffer. outbuffer, final HttpMessage the HTTP message. message)Creates a transfer codec based on properties of the given HTTP message
and returns |
| public void | serialize(final SessionOutputBuffer
the output session buffer. outbuffer, final HttpMessage the HTTP message. message, final HttpEntity the HTTP entity to be written out. entity)Writes out the content of the given HTTP entity to the session output buffer based on properties of the given HTTP message. |
| lenStrategy | back to summary |
|---|---|
| private final ContentLengthStrategy lenStrategy | |
| EntitySerializer | back to summary |
|---|---|
| public EntitySerializer(final ContentLengthStrategy lenStrategy) | |
| doSerialize | back to summary |
|---|---|
| protected OutputStream doSerialize(final SessionOutputBuffer outbuffer, final HttpMessage message) throws HttpException, IOException Creates a transfer codec based on properties of the given HTTP message
and returns
This method is called by the public
| |
| serialize | back to summary |
|---|---|
| public void serialize(final SessionOutputBuffer outbuffer, final HttpMessage message, final HttpEntity entity) throws HttpException, IOException Writes out the content of the given HTTP entity to the session output buffer based on properties of the given HTTP message.
| |