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