BHttpConnectionBase@Contract(threading=IMMUTABLE_CONDITIONAL) @Deprecated public class EntitySerializer extends Object
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.
| Constructor and Description |
|---|
EntitySerializer(ContentLengthStrategy lenStrategy)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
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.
|
public EntitySerializer(ContentLengthStrategy lenStrategy)
public void serialize(SessionOutputBuffer outbuffer, HttpMessage message, HttpEntity entity) throws HttpException, IOException
outbuffer - the output session buffer.message - the HTTP message.entity - the HTTP entity to be written out.HttpException - in case of HTTP protocol violation.IOException - in case of an I/O error.Copyright © 2010 - 2020 Adobe. All Rights Reserved