TransportProtocol Class

public final class TransportProtocol
extends ExpandableStringEnum<TransportProtocol>

The transport protocol for the endpoint.

Field Summary

Modifier and Type Field and Description
static final TransportProtocol ALL

Static value All for TransportProtocol.

static final TransportProtocol TCP

Static value Tcp for TransportProtocol.

static final TransportProtocol UDP

Static value Udp for TransportProtocol.

Constructor Summary

Constructor Description
TransportProtocol()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of TransportProtocol value.

Method Summary

Modifier and Type Method and Description
static TransportProtocol fromString(String name)

Creates or finds a TransportProtocol from its string representation.

static Collection<TransportProtocol> values()

Gets known TransportProtocol values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ALL

public static final TransportProtocol ALL

Static value All for TransportProtocol.

TCP

public static final TransportProtocol TCP

Static value Tcp for TransportProtocol.

UDP

public static final TransportProtocol UDP

Static value Udp for TransportProtocol.

Constructor Details

TransportProtocol

@Deprecated
public TransportProtocol()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of TransportProtocol value.

Method Details

fromString

public static TransportProtocol fromString(String name)

Creates or finds a TransportProtocol from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding TransportProtocol.

values

public static Collection values()

Gets known TransportProtocol values.

Returns:

known TransportProtocol values.

Applies to