AS AgentScopeAPI 手册 / API Reference

TransportPropertiesAttribute

public enum TransportPropertiesAttribute
源码Source io/agentscope/core/nacos/a2a/registry/constants/Constants.java:46–86

定义传输层属性属性相关取值的枚举。位于 io.agentscope.core.nacos.a2a.registry.constants 包。核心成员包括 getPropertyKey、getByEnvKey、HOST、PORT、PATH、PROTOCOL。

The enums for Environment Transport attributes.

The environment key format is #PROPERTIES_ENV_PREFIX``{TRANSPORT}_TransportPropertiesAttribute#envKey. For example: NACOS_A2A_AGENT_JSONRPC_HOST= means transport attribute #HOST for transport JSONRPC.

枚举常量摘要Enum Constant Summary

常量Constant说明Description
HOST
执行 `HOST` 方法。
Performs the HOST operation.
PORT
执行 `PORT` 方法。
Performs the PORT operation.
PATH
执行路径相关操作。
Performs the PATH operation.
PROTOCOL
执行协议相关操作。
Performs the PROTOCOL operation.
QUERY
执行查询相关操作。
Performs the QUERY operation.
SUPPORT_TLS
执行SUPPORT TLS相关操作。
Performs the SUPPORT TLS operation.

方法摘要Method Summary

方法Method说明Description
public String getPropertyKey()
获取属性键。
Gets the property key associated with this transport attribute.
public static TransportPropertiesAttribute getByEnvKey(String envKey)
static
获取`TransportPropertiesAttribute`实例通过环境密钥。
Get `TransportPropertiesAttribute` instance by environment key.

枚举常量详情Enum Constant Detail

HOST

HOST("HOST", "host")
staticfinal

执行 HOST 方法。

Performs the HOST operation.

源码Source io/agentscope/core/nacos/a2a/registry/constants/Constants.java:47

PORT

PORT("PORT", "port")
staticfinal

执行 PORT 方法。

Performs the PORT operation.

源码Source io/agentscope/core/nacos/a2a/registry/constants/Constants.java:48

PATH

PATH("PATH", "path")
staticfinal

执行路径相关操作。

Performs the PATH operation.

源码Source io/agentscope/core/nacos/a2a/registry/constants/Constants.java:49

PROTOCOL

PROTOCOL("PROTOCOL", "protocol")
staticfinal

执行协议相关操作。

Performs the PROTOCOL operation.

源码Source io/agentscope/core/nacos/a2a/registry/constants/Constants.java:50

QUERY

QUERY("QUERY", "query")
staticfinal

执行查询相关操作。

Performs the QUERY operation.

源码Source io/agentscope/core/nacos/a2a/registry/constants/Constants.java:51

SUPPORT_TLS

SUPPORT_TLS("SUPPORTTLS", "supportTls")
staticfinal

执行SUPPORT TLS相关操作。

Performs the SUPPORT TLS operation.

源码Source io/agentscope/core/nacos/a2a/registry/constants/Constants.java:52

方法详情Method Detail

getPropertyKey

public String getPropertyKey()

获取属性键。

Gets the property key associated with this transport attribute.

返回Returns String
属性密钥。the property key
源码Source io/agentscope/core/nacos/a2a/registry/constants/Constants.java:68–70

getByEnvKey

public static TransportPropertiesAttribute getByEnvKey(String envKey)
static

获取TransportPropertiesAttribute实例通过环境密钥。

Get TransportPropertiesAttribute instance by environment key.

参数Parameters
名称Name类型Type说明Description
envKeyStringenv 键(类型 `String`)。environment key
返回Returns TransportPropertiesAttribute
返回TransportPropertiesAttribute。`TransportPropertiesAttribute` instance if found, null if not found
源码Source io/agentscope/core/nacos/a2a/registry/constants/Constants.java:78–85
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.