NacosA2aRegistryTransportProperties
public record NacosA2aRegistryTransportProperties( String transport, String host, int port, String path, boolean supportTls, String protocol, String query)
io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:35–174承载 Nacos A 2 a 注册表传输层属性数据的记录类型。位于 io.agentscope.core.nacos.a2a.registry 包。核心成员包括 transport、host、port、path、supportTls、protocol。
Properties for A2A Transports Endpoint registry to Nacos.
Used to configure A2A Interface(Endpoint) which registers to Nacos, these properties will be merged to transport
and url. The format is:
[protocol://]host:port[/path][?query].
When #protocol is null, protocol will be set to Constants#PROTOCOL_TYPE_HTTP.
When #protocol is Constants#PROTOCOL_TYPE_HTTP (including when set by null) and the
#supportTls is true, it will determine whether to transform #protocol to
Constants#PROTOCOL_TYPE_HTTPS.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
transport | String | 执行传输层相关操作。 Performs the transport operation. |
host | String | 执行 `host` 方法。 Performs the host operation. |
port | int | 执行 `port` 方法。 Performs the port operation. |
path | String | 执行路径相关操作。 Performs the path operation. |
supportTls | boolean | 执行 `supportTls` 方法。 Performs the support tls operation. |
protocol | String | 执行协议相关操作。 Performs the protocol operation. |
query | String | 执行查询相关操作。 Performs the query operation. |
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
Builder | 类class | 构建器用于`NacosA2aRegistryTransportProperties`。 The Builder for `NacosA2aRegistryTransportProperties`. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static Builder builder()static | 创建新的构建器实例用于`NacosA2aRegistryTransportProperties`。 Creates a new builder instance for `NacosA2aRegistryTransportProperties`. |
记录组件详情Record Component Detail
transport
String transport执行传输层相关操作。
Performs the transport operation.
io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:35–174host
String host执行 host 方法。
Performs the host operation.
io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:35–174port
int port执行 port 方法。
Performs the port operation.
io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:35–174path
String path执行路径相关操作。
Performs the path operation.
io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:35–174supportTls
boolean supportTls执行 supportTls 方法。
Performs the support tls operation.
io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:35–174protocol
String protocol执行协议相关操作。
Performs the protocol operation.
io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:35–174query
String query执行查询相关操作。
Performs the query operation.
io/agentscope/core/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:35–174方法详情Method Detail
builder
public static Builder builder()
创建新的构建器实例用于NacosA2aRegistryTransportProperties。
Creates a new builder instance for NacosA2aRegistryTransportProperties.
Builderio/agentscope/core/nacos/a2a/registry/NacosA2aRegistryTransportProperties.java:49–51嵌套类详情Nested Class Detail
Builder
public static class Builder构建器用于NacosA2aRegistryTransportProperties。位于 io.agentscope.core.nacos.a2a.registry 包。核心成员包括 transport、host、port、path、supportTls、protocol。
The Builder for NacosA2aRegistryTransportProperties.
Provides a fluent API for constructing instances with various configuration options.