| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | acceptOutboundMessage(Object msg)
Overrides io. true if the given message should be handled.
|
| protected void | encodeInitialLine(Buffer buf, HttpResponse response)
Implements abstract io. |
| protected boolean | isContentAlwaysEmpty(HttpResponse
the message to test msg)Overrides io. |
| protected void | sanitizeHeadersBeforeEncode(HttpResponse msg, boolean isAlwaysEmpty)
Overrides io. |
| HttpResponseEncoder | back to summary |
|---|---|
| public HttpResponseEncoder() | |
| acceptOutboundMessage | back to summary |
|---|---|
| public boolean acceptOutboundMessage(Object msg) throws Exception Overrides io. Doc from io. Returns
| |
| encodeInitialLine | back to summary |
|---|---|
| protected void encodeInitialLine(Buffer buf, HttpResponse response) throws Exception Implements abstract io.
| |
| isContentAlwaysEmpty | back to summary |
|---|---|
| protected boolean isContentAlwaysEmpty(HttpResponse msg) Overrides io. Doc from io. Determine whether a message has a content or not. Some message may have headers indicating a content without having an actual content, e.g the response to an HEAD or CONNECT request.
| |
| sanitizeHeadersBeforeEncode | back to summary |
|---|---|
| protected void sanitizeHeadersBeforeEncode(HttpResponse msg, boolean isAlwaysEmpty) Overrides io. Doc from io. Allows to sanitize headers of the message before encoding these.
| |