Class DefaultHttpResponseWriter<T extends HttpResponse>
java.lang.Object
org.apache.hc.core5.http.impl.nio.AbstractMessageWriter<T>
org.apache.hc.core5.http.impl.nio.DefaultHttpResponseWriter<T>
- All Implemented Interfaces:
NHttpMessageWriter<T>
Default
NHttpMessageWriter implementation for HttpResponses.- Since:
- 4.1
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultHttpResponseWriter(LineFormatter formatter) Creates an instance of DefaultHttpResponseWriter. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidwriteHeadLine(T message, CharArrayBuffer lineBuf) Writes out the first line ofHttpMessage.Methods inherited from class org.apache.hc.core5.http.impl.nio.AbstractMessageWriter
getLineFormatter, reset, write
-
Constructor Details
-
DefaultHttpResponseWriter
Creates an instance of DefaultHttpResponseWriter.- Parameters:
formatter- the line formatter IfnullBasicLineFormatter.INSTANCEwill be used.- Since:
- 4.3
-
DefaultHttpResponseWriter
public DefaultHttpResponseWriter()- Since:
- 4.3
-
-
Method Details
-
writeHeadLine
Description copied from class:AbstractMessageWriterWrites out the first line ofHttpMessage.- Specified by:
writeHeadLinein classAbstractMessageWriter<T extends HttpResponse>- Parameters:
message- HTTP message.- Throws:
IOException
-