public abstract class AbstractMessageWriter<T extends HttpMessage> extends Object implements HttpMessageWriter<T>
SessionOutputBuffer.| Constructor and Description |
|---|
AbstractMessageWriter(SessionOutputBuffer buffer,
LineFormatter formatter)
Creates an instance of AbstractMessageWriter.
|
AbstractMessageWriter(SessionOutputBuffer buffer,
LineFormatter formatter,
HttpParams params)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(T message)
Serializes an instance of
HttpMessage to the underlying data
sink. |
@Deprecated public AbstractMessageWriter(SessionOutputBuffer buffer, LineFormatter formatter, HttpParams params)
AbstractMessageWriter(SessionOutputBuffer, LineFormatter)buffer - the session output buffer.formatter - the line formatter.params - HTTP parameters.public AbstractMessageWriter(SessionOutputBuffer buffer, LineFormatter formatter)
buffer - the session output buffer.formatter - the line formatter If null BasicLineFormatter.INSTANCE
will be used.public void write(T message) throws IOException, HttpException
HttpMessageWriterHttpMessage to the underlying data
sink.write in interface HttpMessageWriter<T extends HttpMessage>message - HTTP messageIOException - in case of an I/O errorHttpException - in case of HTTP protocol violationCopyright © 2010 - 2020 Adobe. All Rights Reserved