public class HttpResponseEncoder extends HttpObjectEncoder<HttpResponse>
| Constructor and Description |
|---|
HttpResponseEncoder() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptOutboundMessage(Object msg) |
protected void |
encodeInitialLine(io.netty.buffer.ByteBuf buf,
HttpResponse response) |
protected boolean |
isContentAlwaysEmpty(HttpResponse msg)
Determine whether a message has a content or not.
|
protected void |
sanitizeHeadersBeforeEncode(HttpResponse msg,
boolean isAlwaysEmpty)
Allows to sanitize headers of the message before encoding these.
|
encode, encodeAscii, encodeHeaders, writebind, close, connect, deregister, disconnect, flush, readensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharablepublic boolean acceptOutboundMessage(Object msg) throws Exception
acceptOutboundMessage in class HttpObjectEncoder<HttpResponse>Exceptionprotected void encodeInitialLine(io.netty.buffer.ByteBuf buf,
HttpResponse response)
throws Exception
encodeInitialLine in class HttpObjectEncoder<HttpResponse>Exceptionprotected void sanitizeHeadersBeforeEncode(HttpResponse msg, boolean isAlwaysEmpty)
HttpObjectEncodersanitizeHeadersBeforeEncode in class HttpObjectEncoder<HttpResponse>protected boolean isContentAlwaysEmpty(HttpResponse msg)
HttpObjectEncoderisContentAlwaysEmpty in class HttpObjectEncoder<HttpResponse>msg - the message to testtrue to signal the message has no contentCopyright © 2008–2024 The Netty Project. All rights reserved.