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:
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 eBusERemoteApp
. 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 socketSECURE_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()
Returnstrue
if this is a secure connection type andfales
if a clear text connection.boolean
isTcp()
Returnstrue
if this is a TCP connection type andfalse
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.
-
-
-
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 an unsecured 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.
-
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 namejava.lang.NullPointerException
- if the argument is null
-
isTcp
public boolean isTcp()
Returnstrue
if this is a TCP connection type andfalse
otherwise.- Returns:
true
if a TCP connection type.
-
isSecure
public boolean isSecure()
Returnstrue
if this is a secure connection type andfales
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 returnsnull
.- Returns:
- SSL protocol name or
null
if connection type is insecure.
-
-