Top Description Fields Constructors Methods
org.apache.http.impl.io

public Class DefaultHttpResponseWriter

extends AbstractMessageWriter<HttpResponse>
Class Inheritance
Imports
java.io.IOException, org.apache.http.HttpResponse, org.apache.http.io.SessionOutputBuffer, org.apache.http.message.LineFormatter

HTTP response writer that serializes its output to an instance of SessionOutputBuffer.
Since
4.3

Field Summary

Inherited from org.apache.http.impl.io.AbstractMessageWriter:
lineBuflineFormattersessionBuffer

Constructor Summary

AccessConstructor and Description
public
DefaultHttpResponseWriter(final SessionOutputBuffer
the session output buffer.
buffer
,
final LineFormatter
the line formatter If null org.apache.http.message.BasicLineFormatter#INSTANCE will be used.
formatter
)

Creates an instance of DefaultHttpResponseWriter.

public

Method Summary

Modifier and TypeMethod and Description
protected void
writeHeadLine(final HttpResponse
the message whose first line is to be written out.
message
)

Implements abstract org.apache.http.impl.io.AbstractMessageWriter.writeHeadLine.

Subclasses must override this method to write out the first header line based on the HttpMessage passed as a parameter.
Inherited from org.apache.http.impl.io.AbstractMessageWriter:
write

Constructor Detail

DefaultHttpResponseWriterback to summary
public DefaultHttpResponseWriter(final SessionOutputBuffer buffer, final LineFormatter formatter)

Creates an instance of DefaultHttpResponseWriter.

Parameters
buffer:SessionOutputBuffer

the session output buffer.

formatter:LineFormatter

the line formatter If null org.apache.http.message.BasicLineFormatter#INSTANCE will be used.

DefaultHttpResponseWriterback to summary
public DefaultHttpResponseWriter(final SessionOutputBuffer buffer)

Method Detail

writeHeadLineback to summary
protected void writeHeadLine(final HttpResponse message) throws IOException

Implements abstract org.apache.http.impl.io.AbstractMessageWriter.writeHeadLine.

Doc from org.apache.http.impl.io.AbstractMessageWriter.writeHeadLine.

Subclasses must override this method to write out the first header line based on the HttpMessage passed as a parameter.

Parameters
message:HttpResponse

the message whose first line is to be written out.

Annotations
@Override
Exceptions
IOException:
in case of an I/O error.