Class ClientProtocolContext


  • public class ClientProtocolContext
    extends Object
    Protocol context for thin client protocol. Holds protocol version and supported features.
    • Method Detail

      • isFeatureSupported

        public boolean isFeatureSupported​(ClientBitmaskFeature feature)
        Returns:
        true if bitmask protocol feature supported.
      • isFeatureSupported

        public boolean isFeatureSupported​(ClientProtocolVersionFeature feature)
        Returns:
        true if protocol version feature supported.
      • featureBytes

        public byte[] featureBytes()
        Returns:
        Supported features as byte array.
      • isFeatureSupported

        public static boolean isFeatureSupported​(ClientListenerProtocolVersion ver,
                                                 ClientProtocolVersionFeature feature)
        Check if the feature was supported in the protocol version.
        Parameters:
        ver - Protocol version.
        feature - Feature which support should be checked.
        Returns:
        true if the feature was supported in the protocol version.