public enum TransportProtocol extends Enum<TransportProtocol>
Enum Constant and Description |
---|
HTTP
Deprecated.
since 5.7
The HTTP Duplex transport is deprecated and will be removed in the future. Prefer the WebSocket transport. |
TCP
Deprecated.
since 5.9
The DPT transport is deprecated and will be removed in a future release. Prefer the WebSocket transport. |
TCP_SSL
Deprecated.
since 5.9
The DPT transport is deprecated and will be removed in a future release. Prefer the WebSocket transport. |
UDP
Deprecated.
Diffusion over UDP has never been supported. This value will
be removed in the future.
|
WS
WebSocket.
|
Modifier and Type | Method and Description |
---|---|
static TransportProtocol |
valueOf(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.
|
@Deprecated public static final TransportProtocol TCP
The DPT transport is deprecated and will be removed in a future release. Prefer the WebSocket transport.
@Deprecated public static final TransportProtocol TCP_SSL
The DPT transport is deprecated and will be removed in a future release. Prefer the WebSocket transport.
@Deprecated public static final TransportProtocol HTTP
The HTTP Duplex transport is deprecated and will be removed in the future. Prefer the WebSocket transport.
public static final TransportProtocol WS
@Deprecated public static final TransportProtocol UDP
public static TransportProtocol[] values()
for (TransportProtocol c : TransportProtocol.values()) System.out.println(c);
public static TransportProtocol valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016 Push Technology Ltd. All Rights Reserved.