Enum ConfigurationConstants.CommunicationProtocol

    • Method Detail

      • values

        public static ConfigurationConstants.CommunicationProtocol[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ConfigurationConstants.CommunicationProtocol c : ConfigurationConstants.CommunicationProtocol.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ConfigurationConstants.CommunicationProtocol valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getScheme

        public final String getScheme()
        Gets the scheme of this protocol as used in the corresponding URIs.
        Returns:
        The scheme of this protocol as used in the corresponding URIs.
      • fromString

        public static ConfigurationConstants.CommunicationProtocol fromString​(String scheme)
        Tries to convert the designated scheme to a corresponding communication protocol. If the designated scheme does not specify a communication protocol, an IllegalArgumentException will be thrown.
        This is similar to Enum.valueOf(Class, String) but the scheme may have a "." and arbitrary characters following to allow for several communication services using the same communication protocol.
        Parameters:
        scheme - The name of the scheme to get the communication protocol for. Only the prefix before "." is relevant.
        Returns:
        The communication protocol for the designated scheme.
        Throws:
        IllegalArgumentException - If the designated scheme does not specify a communication protocol or it is null, an IllegalArgumentException will be thrown.