public class DefaultHttpResponseWriter extends AbstractMessageWriter<ClassicHttpResponse>
SessionOutputBuffer
.Constructor and Description |
---|
DefaultHttpResponseWriter() |
DefaultHttpResponseWriter(Http1Config http1Config,
LineFormatter formatter) |
DefaultHttpResponseWriter(LineFormatter formatter) |
Modifier and Type | Method and Description |
---|---|
protected HttpVersion |
protocolVersion(HttpResponse message)
Determines the HTTP protocol version to be communicated to the opposite
endpoint in the message header.
|
protected void |
writeHeadLine(ClassicHttpResponse message,
CharArrayBuffer lineBuf)
Subclasses must override this method to write out the first header line
based on the
HttpMessage passed as a parameter. |
write
public DefaultHttpResponseWriter(Http1Config http1Config, LineFormatter formatter)
public DefaultHttpResponseWriter(LineFormatter formatter)
public DefaultHttpResponseWriter()
protected HttpVersion protocolVersion(HttpResponse message)
protected void writeHeadLine(ClassicHttpResponse message, CharArrayBuffer lineBuf) throws IOException
AbstractMessageWriter
HttpMessage
passed as a parameter.writeHeadLine
in class AbstractMessageWriter<ClassicHttpResponse>
message
- the message whose first line is to be written out.lineBuf
- line bufferIOException
- in case of an I/O error.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.