Package org.jdrupes.httpcodec
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
-
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
Encoder<?,?> 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
Decoder<?,?> 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
-