Top Description Constructors Methods
org.apache.hc.core5.http.impl.nio

public Class DefaultHttpResponseWriter<T extends org.apache.hc.core5.http.HttpResponse>

extends AbstractMessageWriter<T extends HttpResponse>
Class Inheritance
Imports
java.io.IOException, org.apache.hc.core5.http.HttpResponse, .HttpVersion, .ProtocolVersion, org.apache.hc.core5.http.message.LineFormatter, .StatusLine, org.apache.hc.core5.util.CharArrayBuffer

Default org.apache.hc.core5.http.nio.NHttpMessageWriter implementation for HttpResponses.
Since
4.1

Constructor Summary

AccessConstructor and Description
public
DefaultHttpResponseWriter(final LineFormatter
the line formatter If null org.apache.hc.core5.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 T
HTTP message.
message
,
final CharArrayBuffer lineBuf)

Implements abstract org.apache.hc.core5.http.impl.nio.AbstractMessageWriter.writeHeadLine.

Writes out the first line of HttpMessage.
Inherited from org.apache.hc.core5.http.impl.nio.AbstractMessageWriter:
getLineFormatterresetwrite

Constructor Detail

DefaultHttpResponseWriterback to summary
public DefaultHttpResponseWriter(final LineFormatter formatter)

Creates an instance of DefaultHttpResponseWriter.

Parameters
formatter:LineFormatter

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

Since
4.3
DefaultHttpResponseWriterback to summary
public DefaultHttpResponseWriter()
Since
4.3

Method Detail

writeHeadLineback to summary
protected void writeHeadLine(final T message, final CharArrayBuffer lineBuf) throws IOException

Implements abstract org.apache.hc.core5.http.impl.nio.AbstractMessageWriter.writeHeadLine.

Doc from org.apache.hc.core5.http.impl.nio.AbstractMessageWriter.writeHeadLine.

Writes out the first line of HttpMessage.

Parameters
message:T

HTTP message.

Annotations
@Override