public abstract class HttpMessageEncoder extends io.netty.handler.codec.MessageToByteEncoder<Object>
HttpMessage
or an HttpChunk
into
a ByteBuf
.
Modifier | Constructor and Description |
---|---|
protected |
HttpMessageEncoder()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
encode(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.buffer.ByteBuf out) |
protected abstract void |
encodeInitialLine(io.netty.buffer.ByteBuf buf,
HttpMessage message) |
boolean |
isEncodable(Object msg) |
newOutboundBuffer
afterAdd, afterRemove, beforeAdd, beforeRemove, bind, close, connect, deregister, disconnect, exceptionCaught, userEventTriggered
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void encode(io.netty.channel.ChannelHandlerContext ctx, Object msg, io.netty.buffer.ByteBuf out) throws Exception
protected abstract void encodeInitialLine(io.netty.buffer.ByteBuf buf, HttpMessage message) throws Exception
Exception
Copyright © 2008-2012 The Netty Project. All Rights Reserved.