public class RtspEncoder extends HttpObjectEncoder<HttpMessage>
HttpMessage
中的RTSP消息或HttpContent
中的RTSP消息编码为ByteBuf
。
ChannelHandler.Sharable
Constructor and Description |
---|
RtspEncoder() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptOutboundMessage(java.lang.Object msg)
如果应该处理给定的消息,则返回
true 。
|
protected void |
encodeInitialLine(ByteBuf buf, HttpMessage message) |
encode, encodeAscii, encodeHeaders, isContentAlwaysEmpty, sanitizeHeadersBeforeEncode
write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exceptionCaught, handlerAdded, handlerRemoved
public boolean acceptOutboundMessage(java.lang.Object msg) throws java.lang.Exception
MessageToMessageEncoder
true
。
如果false
将传递到ChannelPipeline
中的下一个ChannelOutboundHandler
。
acceptOutboundMessage
在课堂上
HttpObjectEncoder<HttpMessage>
java.lang.Exception
protected void encodeInitialLine(ByteBuf buf, HttpMessage message) throws java.lang.Exception
encodeInitialLine
的
HttpObjectEncoder<HttpMessage>
java.lang.Exception
Copyright © 2008–2018 The Netty Project. All rights reserved.