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, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
public boolean acceptOutboundMessage(Object msg) throws Exception
acceptOutboundMessage
in class HttpObjectEncoder<HttpResponse>
Exception
protected void encodeInitialLine(io.netty.buffer.ByteBuf buf, HttpResponse response) throws Exception
encodeInitialLine
in class HttpObjectEncoder<HttpResponse>
Exception
protected void sanitizeHeadersBeforeEncode(HttpResponse msg, boolean isAlwaysEmpty)
HttpObjectEncoder
sanitizeHeadersBeforeEncode
in class HttpObjectEncoder<HttpResponse>
protected boolean isContentAlwaysEmpty(HttpResponse msg)
HttpObjectEncoder
isContentAlwaysEmpty
in class HttpObjectEncoder<HttpResponse>
msg
- the message to testtrue
to signal the message has no contentCopyright © 2008–2024 The Netty Project. All rights reserved.