@ChannelHandler.Sharable public class WebSocket00FrameEncoder extends MessageToByteEncoder<WebSocketFrame> implements WebSocketFrameEncoder
WebSocketFrame into a ByteBuf.
For the detailed instruction on adding add Web Socket support to your HTTP server, take a look into the
WebSocketServer example located in the io.netty.example.http.websocket package.
ChannelHandler.Sharable| Constructor and Description |
|---|
WebSocket00FrameEncoder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
encode(ChannelHandlerContext ctx,
WebSocketFrame msg,
ByteBuf out)
Encode a message into a
ByteBuf. |
acceptOutboundMessage, writebind, close, connect, deregister, disconnect, flush, readexceptionCaught, handlerAdded, handlerRemovedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbind, close, connect, deregister, disconnect, flush, read, writeexceptionCaught, handlerAdded, handlerRemovedprotected void encode(ChannelHandlerContext ctx, WebSocketFrame msg, ByteBuf out) throws Exception
MessageToByteEncoderByteBuf. This method will be called for each written message that can be handled
by this encoder.encode in class MessageToByteEncoder<WebSocketFrame>ctx - the ChannelHandlerContext which this MessageToByteEncoder belongs tomsg - the message to encodeout - the ByteBuf into which the encoded message will be writtenException - is thrown if an error accourCopyright © 2008–2013 The Netty Project. All rights reserved.