Module io.netty5.codec
Package io.netty5.handler.codec
Extensible decoder and its common implementations which deal with the
packet fragmentation and reassembly issue found in a stream-based transport
such as TCP/IP.
-
Interface Summary Interface Description ByteToMessageDecoder.Cumulator CumulateBuffer
s.DecoderResultProvider Provides the accessor methods for theDecoderResult
property of a decoded message.DefaultHeaders.NameValidator<K> Headers<K,V,T extends Headers<K,V,T>> Common interface forHeaders
which represents a mapping of key to value.ProtocolEvent An application-level event propagated via anChannelPipeline
, such as a TLS or WebSocket handshake event.ValueConverter<T> Converts to/from a generic object to the type. -
Class Summary Class Description ByteToMessageCodec<I> A Codec for on-the-fly encoding/decoding of bytes to messages and vise-versa.ByteToMessageDecoder ChannelHandler
which decodes bytes in a stream-like fashion from oneBuffer
to an other Message type.CharSequenceValueConverter Converts to/from native types, generalObject
, andCharSequence
s.DatagramPacketDecoder A decoder that decodes the content of the receivedDatagramPacket
using the specifiedBuffer
decoder.DatagramPacketEncoder<M> An encoder that encodes the content inAddressedEnvelope
toDatagramPacket
using the specified message encoder.DateFormatter A formatter for HTTP header dates, such as "Expires" and "Date" headers, or "expires" field in "Set-Cookie".DecoderResult DefaultHeaders<K,V,T extends Headers<K,V,T>> Default implementation ofHeaders
;DefaultHeaders.HeaderEntry<K,V> DefaultHeadersImpl<K,V> A concrete implementation ofDefaultHeaders
that allows for direct instantiation.DelimiterBasedFrameDecoder A decoder that splits the receivedBuffer
s by one or more delimiters.Delimiters A set of commonly used delimiters forDelimiterBasedFrameDecoder
.EmptyHeaders<K,V,T extends Headers<K,V,T>> FixedLengthFrameDecoder A decoder that splits the receivedBuffer
s by the fixed number of bytes.HeadersUtils Provides utility methods related toHeaders
.LengthFieldBasedFrameDecoder A decoder that splits the receivedBuffer
s dynamically by the value of the length field in the message.LengthFieldPrepender An encoder that prepends the length of the message.LineBasedFrameDecoder A decoder that splits the receivedBuffer
s on line endings.MessageAggregator<I,S,C extends AutoCloseable,A extends AutoCloseable> An abstractChannelHandler
that aggregates a series of message objects into a single aggregated message.MessageToByteEncoder<I> ChannelHandler
which encodes message in a stream-like fashion from one message to aBuffer
.MessageToMessageCodec<INBOUND_IN,OUTBOUND_IN> A Codec for on-the-fly encoding/decoding of message.MessageToMessageDecoder<I> ChannelHandler
which decodes from one message to another message.MessageToMessageEncoder<I> ChannelHandler
which encodes from one message to another message For example here is an implementation which decodes anInteger
to anString
.ProtocolDetectionResult<T> Result of detecting a protocol.UnsupportedValueConverter<V> UnsupportedOperationException
will be thrown from allValueConverter
methods. -
Enum Summary Enum Description ProtocolDetectionState The state of the current detection. -
Exception Summary Exception Description CodecException AnException
which is thrown by a codec.CorruptedFrameException AnDecoderException
which is thrown when the received frame data could not be decoded by an inbound handler.DecoderException AnCodecException
which is thrown by a decoder.EncoderException AnCodecException
which is thrown by an encoder.MessageAggregationException Raised byMessageAggregator
when aggregation fails due to an unexpected message sequence.PrematureChannelClosureException ACodecException
which is thrown when aChannel
is closed unexpectedly before the codec finishes handling the current message, such as missing response while waiting for a request.TooLongFrameException AnDecoderException
which is thrown when the length of the frame decoded is greater than the allowed maximum.UnsupportedMessageTypeException Thrown if an unsupported message is received by a codec.