public class DefaultHttpRequestWriter extends AbstractMessageWriter<ClassicHttpRequest>
SessionOutputBuffer
.Constructor and Description |
---|
DefaultHttpRequestWriter() |
DefaultHttpRequestWriter(LineFormatter formatter)
Creates an instance of DefaultHttpRequestWriter.
|
Modifier and Type | Method and Description |
---|---|
protected void |
writeHeadLine(ClassicHttpRequest 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 DefaultHttpRequestWriter(LineFormatter formatter)
formatter
- the line formatter If null
BasicLineFormatter.INSTANCE
will be used.public DefaultHttpRequestWriter()
protected void writeHeadLine(ClassicHttpRequest message, CharArrayBuffer lineBuf) throws IOException
AbstractMessageWriter
HttpMessage
passed as a parameter.writeHeadLine
in class AbstractMessageWriter<ClassicHttpRequest>
message
- the message whose first line is to be written out.lineBuf
- line bufferIOException
- in case of an I/O error.Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.