Class ProtocolUtils


  • public final class ProtocolUtils
    extends Object
    Resolves the protocol from the service model protocol and protocols fields.
    • Method Detail

      • resolveProtocol

        public static String resolveProtocol​(ServiceMetadata serviceMetadata)
        protocols supersedes protocol. The highest priority protocol supported by the SDK that is present in the service model protocols list will be selected. If none of the values in protocols is supported by the SDK, an error will be thrown. If protocols is empty or null, the value from protocol will be returned.