Enum Class Constants.TransportPropertiesAttribute
java.lang.Object
java.lang.Enum<Constants.TransportPropertiesAttribute>
io.agentscope.core.nacos.a2a.registry.constants.Constants.TransportPropertiesAttribute
- All Implemented Interfaces:
Serializable,Comparable<Constants.TransportPropertiesAttribute>,Constable
- Enclosing class:
- Constants
public static enum Constants.TransportPropertiesAttribute
extends Enum<Constants.TransportPropertiesAttribute>
The enums for Environment Transport attributes.
The environment key format is
Constants.PROPERTIES_ENV_PREFIX{TRANSPORT}_envKey. For example:
NACOS_A2A_AGENT_JSONRPC_HOST= means transport attribute HOST for transport JSONRPC.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetByEnvKey(String envKey) GetConstants.TransportPropertiesAttributeinstance by environment key.Gets the property key associated with this transport attribute.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HOST
-
PORT
-
PATH
-
PROTOCOL
-
QUERY
-
SUPPORT_TLS
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getPropertyKey
Gets the property key associated with this transport attribute.- Returns:
- the property key
-
getByEnvKey
GetConstants.TransportPropertiesAttributeinstance by environment key.- Parameters:
envKey- environment key- Returns:
Constants.TransportPropertiesAttributeinstance if found, null if not found
-