- java.lang.Object
-
- io.netty5.channel.ChannelHandlerAdapter
-
- io.netty5.handler.codec.MessageToMessageEncoder<Object>
-
- io.netty5.handler.codec.http.HttpObjectEncoder<HttpMessage>
-
- io.netty5.handler.codec.rtsp.RtspEncoder
-
- All Implemented Interfaces:
ChannelHandler
public class RtspEncoder extends HttpObjectEncoder<HttpMessage>
-
-
Constructor Summary
Constructors Constructor Description RtspEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptOutboundMessage(Object msg)Returnstrueif the given message should be handled.protected voidencodeInitialLine(Buffer buf, HttpMessage message)-
Methods inherited from class io.netty5.handler.codec.http.HttpObjectEncoder
crlfBuffer, encodeAndClose, encodeHeaders, isContentAlwaysEmpty, sanitizeHeadersBeforeEncode, zeroCrlfCrlfBuffer
-
Methods inherited from class io.netty5.handler.codec.MessageToMessageEncoder
encode, write
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty5.channel.ChannelHandler
bind, channelActive, channelExceptionCaught, channelInactive, channelInboundEvent, channelRead, channelReadComplete, channelRegistered, channelShutdown, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, flush, handlerAdded, handlerRemoved, isSharable, pendingOutboundBytes, read, register, sendOutboundEvent, shutdown
-
-
-
-
Method Detail
-
acceptOutboundMessage
public boolean acceptOutboundMessage(Object msg) throws Exception
Description copied from class:MessageToMessageEncoderReturnstrueif the given message should be handled. Iffalseit will be passed to the nextChannelHandlerin theChannelPipeline.- Overrides:
acceptOutboundMessagein classHttpObjectEncoder<HttpMessage>- Throws:
Exception
-
encodeInitialLine
protected void encodeInitialLine(Buffer buf, HttpMessage message) throws Exception
- Specified by:
encodeInitialLinein classHttpObjectEncoder<HttpMessage>- Throws:
Exception
-
-