TransportPropertiesAttribute
public enum TransportPropertiesAttribute
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")
执行 HOST 方法。
Performs the HOST operation.
io/agentscope/core/nacos/a2a/registry/constants/Constants.java:47PORT
PORT("PORT", "port")
执行 PORT 方法。
Performs the PORT operation.
io/agentscope/core/nacos/a2a/registry/constants/Constants.java:48PATH
PATH("PATH", "path")
执行路径相关操作。
Performs the PATH operation.
io/agentscope/core/nacos/a2a/registry/constants/Constants.java:49PROTOCOL
PROTOCOL("PROTOCOL", "protocol")
执行协议相关操作。
Performs the PROTOCOL operation.
io/agentscope/core/nacos/a2a/registry/constants/Constants.java:50QUERY
QUERY("QUERY", "query")
执行查询相关操作。
Performs the QUERY operation.
io/agentscope/core/nacos/a2a/registry/constants/Constants.java:51SUPPORT_TLS
SUPPORT_TLS("SUPPORTTLS", "supportTls")
执行SUPPORT TLS相关操作。
Performs the SUPPORT TLS operation.
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.
Stringio/agentscope/core/nacos/a2a/registry/constants/Constants.java:68–70getByEnvKey
public static TransportPropertiesAttribute getByEnvKey(String envKey)
获取TransportPropertiesAttribute实例通过环境密钥。
Get TransportPropertiesAttribute instance by environment key.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
envKey | String | env 键(类型 `String`)。environment key |
TransportPropertiesAttributeio/agentscope/core/nacos/a2a/registry/constants/Constants.java:78–85