@ChannelHandler.Sharable public abstract class RtspMessageEncoder extends HttpMessageEncoder
HttpMessage into
a ChannelBuffer.ChannelHandler.Sharable| Modifier | Constructor and Description |
|---|---|
protected |
RtspMessageEncoder()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
encode(ChannelHandlerContext ctx,
Channel channel,
java.lang.Object msg)
Transforms the specified message into another message and return the
transformed message.
|
encodeAscii, encodeInitialLinedoEncode, handleDownstreamprotected java.lang.Object encode(ChannelHandlerContext ctx, Channel channel, java.lang.Object msg) throws java.lang.Exception
OneToOneEncodernull, unlike
you can in OneToOneDecoder.decode(ChannelHandlerContext, Channel, Object);
you must return something, at least ChannelBuffers.EMPTY_BUFFER.encode in class HttpMessageEncoderjava.lang.Exception