Interface Codec

All Known Subinterfaces:
Decoder<T,R>, Encoder<T,D>
All Known Implementing Classes:
HttpCodec, HttpDecoder, HttpEncoder, HttpRequestDecoder, HttpRequestEncoder, HttpResponseDecoder, HttpResponseEncoder, WsCodec, WsDecoder, WsEncoder

public interface Codec
The base interface for all coders and decoders.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Results that indicate a protocol switch must implement this interface.
    static class 
    The common properties of the result types returned by the various codecs.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ByteBuffer
    An empty input buffer that can be used for codec invocations when the (expected) body data is not yet available.
  • Field Details

    • EMPTY_IN

      static final ByteBuffer EMPTY_IN
      An empty input buffer that can be used for codec invocations when the (expected) body data is not yet available.