NHttpMessageWriter that serves as a base for all message
writer implementations.
| Modifier and Type | Field and Description |
|---|---|
| private final CharArrayBuffer | |
| private final LineFormatter |
| Access | Constructor and Description |
|---|---|
| public | AbstractMessageWriter(final LineFormatter
the line formatter If formatter)null BasicLineFormatter#INSTANCE
will be used.Creates an instance of AbstractMessageWriter. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv LineFormatter | |
| public void | |
| public void | write(final T
HTTP message. message, final SessionOutputBuffer session output buffer. sessionBuffer)Implements org. |
| protected abstract void | writeHeadLine(T
HTTP message. message, CharArrayBuffer buffer)Writes out the first line of |
| lineBuf | back to summary |
|---|---|
| private final CharArrayBuffer lineBuf | |
| lineFormatter | back to summary |
|---|---|
| private final LineFormatter lineFormatter | |
| AbstractMessageWriter | back to summary |
|---|---|
| public AbstractMessageWriter(final LineFormatter formatter) Creates an instance of AbstractMessageWriter.
| |
| getLineFormatter | back to summary |
|---|---|
| pack-priv LineFormatter getLineFormatter() | |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. Resets the writer. The writer will be ready to start serializing another HTTP message.
| |
| write | back to summary |
|---|---|
| public void write(final T message, final SessionOutputBuffer sessionBuffer) throws IOException, HttpException Implements org. Doc from org. Writes out the HTTP message head.
| |
| writeHeadLine | back to summary |
|---|---|
| protected abstract void writeHeadLine(T message, CharArrayBuffer buffer) throws IOException Writes out the first line of
| |