WebSocketFrame
into a ChannelBuffer
.
For the detailed instruction on adding add Web Socket support to your HTTP
server, take a look into the WebSocketServer example located in the
org.jboss.netty.example.http.websocket
package.
@Deprecated @ChannelHandler.Sharable public class WebSocketFrameEncoder extends OneToOneEncoder
ChannelHandler.Sharable
Constructor and Description |
---|
WebSocketFrameEncoder()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
encode(ChannelHandlerContext ctx,
Channel channel,
Object msg)
Deprecated.
Transforms the specified message into another message and return the
transformed message.
|
doEncode, handleDownstream
protected Object encode(ChannelHandlerContext ctx, Channel channel, Object msg) throws Exception
OneToOneEncoder
null
, unlike
you can in OneToOneDecoder.decode(ChannelHandlerContext, Channel, Object)
;
you must return something, at least ChannelBuffers.EMPTY_BUFFER
.encode
in class OneToOneEncoder
Exception
Copyright © 2008-2014 The Netty Project. All Rights Reserved.