public abstract class HttpObjectEncoder<H extends HttpMessage> extends MessageToMessageEncoder<HttpObject>
HttpMessage or an HttpContent into
a ByteBuf.
ChannelHandler.Sharable| Constructor and Description |
|---|
HttpObjectEncoder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
encode(ChannelHandlerContext ctx,
HttpObject msg,
List<Object> out)
Encode from one message to an other.
|
protected static void |
encodeAscii(String s,
ByteBuf buf) |
protected abstract void |
encodeInitialLine(ByteBuf buf,
H message) |
acceptOutboundMessage, writebind, close, connect, deregister, disconnect, flush, readexceptionCaught, handlerAdded, handlerRemovedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexceptionCaught, handlerAdded, handlerRemovedprotected void encode(ChannelHandlerContext ctx, HttpObject msg, List<Object> out) throws Exception
MessageToMessageEncoderencode in class MessageToMessageEncoder<HttpObject>ctx - the ChannelHandlerContext which this MessageToMessageEncoder belongs tomsg - the message to encode to an other oneout - the List into which the encoded msg should be added
needs to do some kind of aggragationException - is thrown if an error accourCopyright © 2008–2013 The Netty Project. All rights reserved.