|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.impl.entity.EntitySerializer
BHttpConnectionBase
@Contract(threading=IMMUTABLE_CONDITIONAL) @Deprecated public class EntitySerializer
HTTP entity serializer.
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 Summary | |
---|---|
EntitySerializer(ContentLengthStrategy lenStrategy)
Deprecated. |
Method Summary | |
---|---|
protected OutputStream |
doSerialize(SessionOutputBuffer outbuffer,
HttpMessage message)
Deprecated. Creates a transfer codec based on properties of the given HTTP message and returns OutputStream instance that transparently encodes
output data as it is being written out to the output stream. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntitySerializer(ContentLengthStrategy lenStrategy)
Method Detail |
---|
protected OutputStream doSerialize(SessionOutputBuffer outbuffer, HttpMessage message) throws HttpException, IOException
OutputStream
instance that transparently encodes
output data as it is being written out to the output stream.
This method is called by the public
serialize(SessionOutputBuffer, HttpMessage, HttpEntity)
.
outbuffer
- the session output buffer.message
- the HTTP message.
HttpException
- in case of HTTP protocol violation.
IOException
- in case of an I/O error.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |