public enum TransportProtocol extends java.lang.Enum<TransportProtocol>
Enum Constant and Description |
---|
TCP
The "transport" protocol is TCP.
|
TLS
The "transport" protocol is TLS.
|
UDP
The "transport" protocol is UDP.
|
UNKNOWN
The "transport" protocol is unknown.
|
Modifier and Type | Method and Description |
---|---|
static TransportProtocol |
parse(java.lang.String transportProtocol)
Parses a String and returns the appropriate
TransportProtocol.
|
static TransportProtocol |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransportProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransportProtocol UNKNOWN
public static final TransportProtocol UDP
public static final TransportProtocol TCP
public static final TransportProtocol TLS
public static TransportProtocol[] values()
for (TransportProtocol c : TransportProtocol.values()) System.out.println(c);
public static TransportProtocol valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static TransportProtocol parse(java.lang.String transportProtocol) throws java.lang.IllegalArgumentException
transportProtocol
- stringjava.lang.IllegalArgumentException
- if string is not a transport protocol
valid name
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.