public class DefaultHttpResponseWriter<T extends HttpResponse> extends AbstractMessageWriter<T>
NHttpMessageWriter implementation for HttpResponses.| Constructor and Description |
|---|
DefaultHttpResponseWriter() |
DefaultHttpResponseWriter(LineFormatter formatter)
Creates an instance of DefaultHttpResponseWriter.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
writeHeadLine(T message,
CharArrayBuffer lineBuf)
Writes out the first line of
HttpMessage. |
reset, writepublic DefaultHttpResponseWriter(LineFormatter formatter)
formatter - the line formatter If null
BasicLineFormatter.INSTANCE will be used.public DefaultHttpResponseWriter()
protected void writeHeadLine(T message, CharArrayBuffer lineBuf) throws IOException
AbstractMessageWriterHttpMessage.writeHeadLine in class AbstractMessageWriter<T extends HttpResponse>message - HTTP message.IOExceptionCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.