public class DefaultHttpResponseWriter<T extends HttpResponse> extends AbstractMessageWriter<T>
NHttpMessageWriter
implementation for HttpResponse
s.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, write
public 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
AbstractMessageWriter
HttpMessage
.writeHeadLine
in class AbstractMessageWriter<T extends HttpResponse>
message
- HTTP message.IOException
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.