T - The type of HttpResponse.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. | 
| 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, writepublic 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
AbstractMessageWriterHttpMessage.writeHeadLine in class AbstractMessageWriter<T extends HttpResponse>message - HTTP message.IOException - in case of an I/O error.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.