Package io.netty.handler.codec.rtsp
Class RtspEncoder
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelOutboundHandlerAdapter
-
- io.netty.handler.codec.MessageToMessageEncoder<java.lang.Object>
-
- io.netty.handler.codec.http.HttpObjectEncoder<HttpMessage>
-
- io.netty.handler.codec.rtsp.RtspEncoder
-
- All Implemented Interfaces:
ChannelHandler,ChannelOutboundHandler
- Direct Known Subclasses:
RtspRequestEncoder,RtspResponseEncoder
public class RtspEncoder extends HttpObjectEncoder<HttpMessage>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
-
Constructor Summary
Constructors Constructor Description RtspEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptOutboundMessage(java.lang.Object msg)Returnstrueif the given message should be handled.protected voidencodeInitialLine(ByteBuf buf, HttpMessage message)-
Methods inherited from class io.netty.handler.codec.http.HttpObjectEncoder
encode, encodeAscii, encodeHeaders, isContentAlwaysEmpty, sanitizeHeadersBeforeEncode, write
-
Methods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, read
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty.channel.ChannelHandler
exceptionCaught, handlerAdded, handlerRemoved
-
-
-
-
Method Detail
-
acceptOutboundMessage
public boolean acceptOutboundMessage(java.lang.Object msg) throws java.lang.ExceptionDescription copied from class:MessageToMessageEncoderReturnstrueif the given message should be handled. Iffalseit will be passed to the nextChannelOutboundHandlerin theChannelPipeline.- Overrides:
acceptOutboundMessagein classHttpObjectEncoder<HttpMessage>- Throws:
java.lang.Exception
-
encodeInitialLine
protected void encodeInitialLine(ByteBuf buf, HttpMessage message) throws java.lang.Exception
- Specified by:
encodeInitialLinein classHttpObjectEncoder<HttpMessage>- Throws:
java.lang.Exception
-
-