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.CumulatorCumulate
DecoderResultProviderProvides the accessor methods for the
DecoderResultproperty of a decoded message.
DefaultHeaders.NameValidator<K> Headers<K,V,T extends Headers<K,V,T>>Common interface for
Headerswhich represents a mapping of key to value.
ProtocolEventAn application-level event propagated via an
ChannelPipeline, 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
ChannelHandlerwhich decodes bytes in a stream-like fashion from one
Bufferto an other Message type.
CharSequenceValueConverterConverts to/from native types, general
DatagramPacketDecoderA decoder that decodes the content of the received
DatagramPacketusing the specified
DatagramPacketEncoder<M>An encoder that encodes the content in
DatagramPacketusing the specified message encoder.
DateFormatterA 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 of
DefaultHeaders.HeaderEntry<K,V> DefaultHeadersImpl<K,V>A concrete implementation of
DefaultHeadersthat allows for direct instantiation.
DelimiterBasedFrameDecoderA decoder that splits the received
Buffers by one or more delimiters.
DelimitersA set of commonly used delimiters for
EmptyHeaders<K,V,T extends Headers<K,V,T>> FixedLengthFrameDecoderA decoder that splits the received
Buffers by the fixed number of bytes.
HeadersUtilsProvides utility methods related to
LengthFieldBasedFrameDecoderA decoder that splits the received
Buffers dynamically by the value of the length field in the message.
LengthFieldPrependerAn encoder that prepends the length of the message. LineBasedFrameDecoderA decoder that splits the received
Buffers on line endings.
MessageAggregator<I,S,C extends AutoCloseable,A extends AutoCloseable>An abstract
ChannelHandlerthat aggregates a series of message objects into a single aggregated message.
ChannelHandlerwhich encodes message in a stream-like fashion from one message to a
MessageToMessageCodec<INBOUND_IN,OUTBOUND_IN>A Codec for on-the-fly encoding/decoding of message. MessageToMessageDecoder<I>
ChannelHandlerwhich decodes from one message to another message.
ChannelHandlerwhich encodes from one message to another message For example here is an implementation which decodes an
ProtocolDetectionResult<T>Result of detecting a protocol. UnsupportedValueConverter<V>
UnsupportedOperationExceptionwill be thrown from all
Enum Summary Enum Description ProtocolDetectionStateThe state of the current detection.
Exception Summary Exception Description CodecExceptionAn
Exceptionwhich is thrown by a codec.
DecoderExceptionwhich is thrown when the received frame data could not be decoded by an inbound handler.
CodecExceptionwhich is thrown by a decoder.
CodecExceptionwhich is thrown by an encoder.
MessageAggregatorwhen aggregation fails due to an unexpected message sequence.
CodecExceptionwhich is thrown when a
Channelis closed unexpectedly before the codec finishes handling the current message, such as missing response while waiting for a request.
DecoderExceptionwhich is thrown when the length of the frame decoded is greater than the allowed maximum.
UnsupportedMessageTypeExceptionThrown if an unsupported message is received by a codec.