@ChannelHandler.Sharable public class WebSocket00FrameEncoder extends io.netty.handler.codec.MessageToByteEncoder<WebSocketFrame>
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.
| Constructor and Description |
|---|
WebSocket00FrameEncoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(io.netty.channel.ChannelHandlerContext ctx,
WebSocketFrame msg,
io.netty.buffer.ByteBuf out) |
boolean |
isEncodable(Object msg) |
newOutboundBufferafterAdd, afterRemove, beforeAdd, beforeRemove, bind, close, connect, deregister, disconnect, exceptionCaught, userEventTriggeredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic boolean isEncodable(Object msg) throws Exception
isEncodable in class io.netty.handler.codec.MessageToByteEncoder<WebSocketFrame>Exceptionpublic void encode(io.netty.channel.ChannelHandlerContext ctx,
WebSocketFrame msg,
io.netty.buffer.ByteBuf out)
throws Exception
encode in class io.netty.handler.codec.MessageToByteEncoder<WebSocketFrame>ExceptionCopyright © 2008-2012 The Netty Project. All Rights Reserved.