你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Layer4Protocol 类

public final class Layer4Protocol
extends ExpandableStringEnum<Layer4Protocol>

需要匹配的第 4 层协议类型。

字段摘要

修饰符和类型 字段和描述
static final Layer4Protocol TCP

Layer4Protocol 的静态值 TCP。

static final Layer4Protocol UDP

Layer4Protocol 的静态值 UDP。

构造函数摘要

构造函数 说明
Layer4Protocol()

已放弃

fromString(String name)使用工厂方法。

创建 Layer4Protocol 值的新实例。

方法摘要

修饰符和类型 方法和描述
static Layer4Protocol fromString(String name)

从其字符串表示形式创建或查找 Layer4Protocol。

static Collection<Layer4Protocol> values()

获取已知的 Layer4Protocol 值。

方法继承自 ExpandableStringEnum

方法继承自 java.lang.Object

字段详细信息

TCP

public static final Layer4Protocol TCP

Layer4Protocol 的静态值 TCP。

UDP

public static final Layer4Protocol UDP

Layer4Protocol 的静态值 UDP。

构造函数详细信息

Layer4Protocol

@Deprecated
public Layer4Protocol()

已放弃

fromString(String name)使用工厂方法。

创建 Layer4Protocol 值的新实例。

方法详细信息

fromString

public static Layer4Protocol fromString(String name)

从其字符串表示形式创建或查找 Layer4Protocol。

Parameters:

name - 要查找的名称。

Returns:

相应的 Layer4Protocol。

values

public static Collection values()

获取已知的 Layer4Protocol 值。

Returns:

已知的 Layer4Protocol 值。

适用于