Enum EConfigure.ConnectionType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<EConfigure.ConnectionType>
    Enclosing class:
    EConfigure

    public static enum EConfigure.ConnectionType
    extends java.lang.Enum<EConfigure.ConnectionType>
    Enumerates the channel types supported by eBus ERemoteApp. This is currently limited to either TCP or secure TCP (TLS - Transport Layer Security).
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      RELIABLE_UDP
      Remote application connection is a reliable, unsecured UDP socket
      SECURE_RELIABLE_UDP
      Remote application connection is a reliable, secured UDP socket.
      SECURE_TCP
      Remote application connection is a TCP socket using TLS (Transport Layer Security) to provide communication security.
      SECURE_UDP
      Remote application connection is a UDP socket using DTLS (Datagram Transport Layer Security) to provide communication security.
      TCP
      Remote application connection is a TCP socket.
      UDP
      Remote application connection is an unsecured UDP socket.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isSecure()
      Returns true if this is a secure connection type and fales if a clear text connection.
      boolean isTcp()
      Returns true if this is a TCP connection type and false otherwise.
      java.lang.String sslProtocol()
      Returns SSL protocol name associated with a secure connection type.
      static EConfigure.ConnectionType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static EConfigure.ConnectionType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • SECURE_TCP

        public static final EConfigure.ConnectionType SECURE_TCP
        Remote application connection is a TCP socket using TLS (Transport Layer Security) to provide communication security.
      • SECURE_UDP

        public static final EConfigure.ConnectionType SECURE_UDP
        Remote application connection is a UDP socket using DTLS (Datagram Transport Layer Security) to provide communication security.
      • RELIABLE_UDP

        public static final EConfigure.ConnectionType RELIABLE_UDP
        Remote application connection is a reliable, unsecured UDP socket
      • SECURE_RELIABLE_UDP

        public static final EConfigure.ConnectionType SECURE_RELIABLE_UDP
        Remote application connection is a reliable, secured UDP socket.
    • Method Detail

      • values

        public static EConfigure.ConnectionType[] 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 (EConfigure.ConnectionType c : EConfigure.ConnectionType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EConfigure.ConnectionType valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isTcp

        public boolean isTcp()
        Returns true if this is a TCP connection type and false otherwise.
        Returns:
        true if a TCP connection type.
      • isSecure

        public boolean isSecure()
        Returns true if this is a secure connection type and fales if a clear text connection.
        Returns:
        true if connection type is secure.
      • sslProtocol

        public java.lang.String sslProtocol()
        Returns SSL protocol name associated with a secure connection type. If connection type is insecure, then returns null.
        Returns:
        SSL protocol name or null if connection type is insecure.