接口 | 说明 |
---|---|
ByteToMessageDecoder.Cumulator |
Cumulate
ByteBuf s. |
DecoderResultProvider |
Provides the accessor methods for the
DecoderResult property of a decoded message. |
DefaultHeaders.NameValidator<K> | |
DefaultHeaders.ValueValidator<V> | |
Headers<K,V,T extends Headers<K,V,T>> |
Common interface for
Headers which represents a mapping of key to value. |
ValueConverter<T> |
Converts to/from a generic object to the type.
|
类 | 说明 |
---|---|
AdvancedCodecOutputListBenchmark | |
AsciiHeadersEncoder | |
ByteToMessageCodec<I> |
A Codec for on-the-fly encoding/decoding of bytes to messages and vise-versa.
|
ByteToMessageDecoder |
ChannelInboundHandlerAdapter which decodes bytes in a stream-like fashion from one ByteBuf to an
other Message type. |
CharSequenceValueConverter |
Converts to/from native types, general
Object , and CharSequence s. |
CodecOutputListBenchmark | |
DatagramPacketDecoder |
A decoder that decodes the content of the received
DatagramPacket using
the specified ByteBuf decoder. |
DatagramPacketEncoder<M> |
An encoder that encodes the content in
AddressedEnvelope to DatagramPacket using
the specified message encoder. |
DateFormatter |
A formatter for HTTP header dates, such as "Expires" and "Date" headers, or "expires" field in "Set-Cookie".
|
DateFormatter2Benchmark | |
DateFormatterBenchmark | |
DecoderResult | |
DefaultHeaders<K,V,T extends Headers<K,V,T>> |
Default implementation of
Headers ; |
DefaultHeaders.HeaderEntry<K,V> | |
DefaultHeadersImpl<K,V> |
A concrete implementation of
DefaultHeaders that allows for direct instantiation. |
DelimiterBasedFrameDecoder |
A decoder that splits the received
ByteBuf s by one or more
delimiters. |
Delimiters |
A set of commonly used delimiters for
DelimiterBasedFrameDecoder . |
EmptyHeaders<K,V,T extends Headers<K,V,T>> | |
FixedLengthFrameDecoder |
A decoder that splits the received
ByteBuf s by the fixed number
of bytes. |
HeadersUtils |
Provides utility methods related to
Headers . |
LengthFieldBasedFrameDecoder |
A decoder that splits the received
ByteBuf 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 received
ByteBuf s on line endings. |
MessageAggregator<I,S,C extends ByteBufHolder,O extends ByteBufHolder> |
An abstract
ChannelHandler that aggregates a series of message objects into a single aggregated message. |
MessageToByteEncoder<I> |
ChannelOutboundHandlerAdapter which encodes message in a stream-like fashion from one message to an
ByteBuf . |
MessageToMessageCodec<INBOUND_IN,OUTBOUND_IN> |
A Codec for on-the-fly encoding/decoding of message.
|
MessageToMessageDecoder<I> |
ChannelInboundHandlerAdapter which decodes from one message to an other message. |
MessageToMessageEncoder<I> |
ChannelOutboundHandlerAdapter which encodes from one message to an other message
For example here is an implementation which decodes an Integer to an String . |
ProtocolDetectionResult<T> |
Result of detecting a protocol.
|
ReplayingDecoder<S> |
A specialized variation of
ByteToMessageDecoder which enables implementation
of a non-blocking decoder in the blocking I/O paradigm. |
UnsupportedValueConverter<V> |
UnsupportedOperationException will be thrown from all ValueConverter methods. |
枚举 | 说明 |
---|---|
AsciiHeadersEncoder.NewlineType |
The newline characters to insert between header entries.
|
AsciiHeadersEncoder.SeparatorType |
The separator characters to insert between a header name and a header value.
|
ProtocolDetectionState |
The state of the current detection.
|
异常错误 | 说明 |
---|---|
CodecException |
An
Exception which is thrown by a codec. |
CorruptedFrameException |
An
DecoderException which is thrown when the received frame data could not be decoded by
an inbound handler. |
DecoderException |
An
CodecException which is thrown by a decoder. |
EncoderException |
An
CodecException which is thrown by an encoder. |
MessageAggregationException |
Raised by
MessageAggregator when aggregation fails due to an unexpected message sequence. |
PrematureChannelClosureException |
A
CodecException which is thrown when a Channel is closed unexpectedly before
the codec finishes handling the current message, such as missing response while waiting for a
request. |
TooLongFrameException |
An
DecoderException 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 an codec.
|
io.netty.handler.codec
.