Java HttpCookie getPortlist() 方法

2025年3月22日 | 阅读1分钟

HttpCookie 类的 getPortlist() 方法用于返回 cookie 的端口列表属性。

语法

参数

不适用。

返回

上述方法用于返回一个包含端口列表的字符串。此外,如果没有端口列表,该方法可能返回 null。

示例 1

输出

The port lists is given as: 2100, 1897

示例 2

输出

The first port list is given as:3980
The second port list is given as:3900

示例 3

输出

The port lists is given as: null
下一主题getSecure() 方法