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.
|
DefaultHttpResponseWriter(LineFormatter formatter,
Http1Config http1Config) |
Modifier and Type | Method and Description |
---|---|
protected HttpVersion |
protocolVersion(T request)
Determines the HTTP protocol version to be communicated to the opposite
endpoint in the message header.
|
protected void |
writeHeadLine(T message,
CharArrayBuffer lineBuf)
Writes out the first line of
HttpMessage . |
reset, write
public DefaultHttpResponseWriter(LineFormatter formatter, Http1Config http1Config)
public DefaultHttpResponseWriter(LineFormatter formatter)
formatter
- the line formatter If null
BasicLineFormatter.INSTANCE
will be used.public DefaultHttpResponseWriter()
protected HttpVersion protocolVersion(T request)
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.