JSONRPCProperties
@ConfigurationProperties(Constants.A2A_JSON_RPC_SERVER_PREFIX) public class JSONRPCProperties implements CustomTransportProperties
源码Source
io/agentscope/spring/boot/a2a/properties/JSONRPCProperties.java:27–66用于JSON-RPC 传输层的配置属性。位于 io.agentscope.spring.boot.a2a.properties 包,实现 CustomTransportProperties。核心成员包括 toTransportProperties、setDeploymentProperties、isEnabled、setEnabled。
Configuration properties for JSON-RPC transport.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public TransportProperties toTransportProperties() | 转换到`TransportProperties`。 Converts to `TransportProperties`. |
public void setDeploymentProperties(DeploymentProperties deploymentProperties) | 设置部署属性。 Sets the deployment properties. |
public boolean isEnabled() | 判断是否已启用。 Returns whether the enabled. |
public void setEnabled(boolean enabled) | 设置已启用。 Sets the enabled. |
方法详情Method Detail
toTransportProperties
public TransportProperties toTransportProperties()
转换到TransportProperties。
Converts to TransportProperties.
TransportProperties传输层属性。the transport properties
源码Source
io/agentscope/spring/boot/a2a/properties/JSONRPCProperties.java:44–51setDeploymentProperties
public void setDeploymentProperties(DeploymentProperties deploymentProperties)
设置部署属性。
Sets the deployment properties.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
deploymentProperties | DeploymentProperties | 部署属性(类型 `DeploymentProperties`)。The deployment properties. |
源码Source
io/agentscope/spring/boot/a2a/properties/JSONRPCProperties.java:53–56isEnabled
public boolean isEnabled()
判断是否已启用。
Returns whether the enabled.
boolean返回布尔值,表示判断结果。Returns a boolean result.
源码Source
io/agentscope/spring/boot/a2a/properties/JSONRPCProperties.java:58–61setEnabled
public void setEnabled(boolean enabled)
设置已启用。
Sets the enabled.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
enabled | boolean | 已启用(类型 `boolean`)。The enabled. |
源码Source
io/agentscope/spring/boot/a2a/properties/JSONRPCProperties.java:63–65