public abstract class HttpObjectEncoder<H extends HttpMessage> extends io.netty.handler.codec.MessageToMessageEncoder<Object>
HttpMessage or an HttpContent into
a ByteBuf.
| Constructor and Description |
|---|
HttpObjectEncoder() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptOutboundMessage(Object msg) |
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
List<Object> out) |
protected static void |
encodeAscii(String s,
io.netty.buffer.ByteBuf buf)
Deprecated.
|
protected void |
encodeHeaders(HttpHeaders headers,
io.netty.buffer.ByteBuf buf)
Encode the
HttpHeaders into a ByteBuf. |
protected abstract void |
encodeInitialLine(io.netty.buffer.ByteBuf buf,
H message) |
bind, close, connect, deregister, disconnect, flush, readexceptionCaught, handlerAdded, handlerRemoved, isSharableprotected void encode(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
List<Object> out)
throws Exception
protected void encodeHeaders(HttpHeaders headers, io.netty.buffer.ByteBuf buf) throws Exception
HttpHeaders into a ByteBuf.Exception@Deprecated protected static void encodeAscii(String s, io.netty.buffer.ByteBuf buf)
Copyright © 2008–2017 The Netty Project. All rights reserved.