@NotThreadSafe public class DefaultHttpResponseWriter extends AbstractMessageWriter<HttpResponse>
SessionOutputBuffer
.lineBuf, lineFormatter, sessionBuffer
Constructor and Description |
---|
DefaultHttpResponseWriter(SessionOutputBuffer buffer) |
DefaultHttpResponseWriter(SessionOutputBuffer buffer,
LineFormatter formatter)
Creates an instance of DefaultHttpResponseWriter.
|
Modifier and Type | Method and Description |
---|---|
protected void |
writeHeadLine(HttpResponse message)
Subclasses must override this method to write out the first header line
based on the
HttpMessage passed as a parameter. |
write
public DefaultHttpResponseWriter(SessionOutputBuffer buffer, LineFormatter formatter)
buffer
- the session output buffer.formatter
- the line formatter If null
BasicLineFormatter.INSTANCE
will be used.public DefaultHttpResponseWriter(SessionOutputBuffer buffer)
protected void writeHeadLine(HttpResponse message) throws java.io.IOException
AbstractMessageWriter
HttpMessage
passed as a parameter.writeHeadLine
in class AbstractMessageWriter<HttpResponse>
message
- the message whose first line is to be written out.java.io.IOException
- in case of an I/O error.