Interface Codec.ProtocolSwitchResult

All Known Implementing Classes:
HttpResponseDecoder.Result, HttpResponseEncoder.Result
Enclosing interface:
Codec

public static interface Codec.ProtocolSwitchResult
Results that indicate a protocol switch must implement this interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    Decoder<?,?>
    The decoder to be used for the next message if a protocol switch occured.
    Encoder<?,?>
    The encoder to be used for the next message if a protocol switch occured.
    The name of the protocol to be used for the next request if a protocol switch occured.
  • Method Details

    • newProtocol

      The name of the protocol to be used for the next request if a protocol switch occured.
      Returns:
      the name or null if no protocol switch occured
    • newEncoder

      The encoder to be used for the next message if a protocol switch occured.
      Returns:
      the encoder or null if no protocol switch occurred
    • newDecoder

      The decoder to be used for the next message if a protocol switch occured.
      Returns:
      the decoder or null if no protocol switch occurred