Package net.sf.eBus.config
Enum EConfigure.ConnectionType
- java.lang.Object
-
- java.lang.Enum<EConfigure.ConnectionType>
-
- net.sf.eBus.config.EConfigure.ConnectionType
-
- All Implemented Interfaces:
Serializable,Comparable<EConfigure.ConnectionType>
- Enclosing class:
- EConfigure
public static enum EConfigure.ConnectionType extends Enum<EConfigure.ConnectionType>
Enumerates the channel types supported by eBusERemoteApp. This is currently limited to either TCP or secure TCP (TLS - Transport Layer Security).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SECURE_TCPRemote application connection is a TCP socket using TLS (Transport Layer Security) to provide communication security.SECURE_UDPRemote application connection is a UDP socket using DTLS (Datagram Transport Layer Security) to provide communication security.TCPRemote application connection is a TCP socket.UDPRemote application connection is a UDP socket.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSecure()Returnstrueif this is a secure connection type andfalesif a clear text connection.StringsslProtocol()Returns SSL protocol name associated with a secure connection type.static EConfigure.ConnectionTypevalueOf(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.
-
-
-
Enum Constant Detail
-
TCP
public static final EConfigure.ConnectionType TCP
Remote application connection is a TCP socket.
-
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.
-
UDP
public static final EConfigure.ConnectionType UDP
Remote application connection is a UDP socket.
-
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.
-
-
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(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 nameNullPointerException- if the argument is null
-
isSecure
public boolean isSecure()
Returnstrueif this is a secure connection type andfalesif a clear text connection.- Returns:
trueif connection type is secure.
-
sslProtocol
public String sslProtocol()
Returns SSL protocol name associated with a secure connection type. If connection type is insecure, then returnsnull.- Returns:
- SSL protocol name or
nullif connection type is insecure.
-
-