Package org.a2aproject.sdk.client.http
Record Class A2AHttpClientConfiguration
java.lang.Object
java.lang.Record
org.a2aproject.sdk.client.http.A2AHttpClientConfiguration
public record A2AHttpClientConfiguration(List<String> excludedProviderNames, @Nullable SSEParserConfig sseParserConfig, @Nullable RedirectHeaderPolicy redirectHeaderPolicy)
extends Record
Optional settings used by
A2AHttpClientFactory when selecting and creating a client.
A provider is eligible only when it supports every configured setting. This prevents the factory from silently ignoring security or SSE parsing configuration.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final A2AHttpClientConfigurationThe default configuration, which selects the highest-priority available provider. -
Constructor Summary
ConstructorsConstructorDescriptionA2AHttpClientConfiguration(List<String> excludedProviderNames, @Nullable SSEParserConfig sseParserConfig, @Nullable RedirectHeaderPolicy redirectHeaderPolicy) Creates an instance of aA2AHttpClientConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns a builder for a client configuration.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexcludedProviderNamesrecord component.final inthashCode()Returns a hash code value for this object.@Nullable RedirectHeaderPolicyReturns the value of theredirectHeaderPolicyrecord component.Returns the configured redirect policy, or the SDK default when none was supplied.@Nullable SSEParserConfigReturns the value of thesseParserConfigrecord component.Returns the configured SSE parser limits, or the SDK defaults when none were supplied.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
The default configuration, which selects the highest-priority available provider.
-
-
Constructor Details
-
A2AHttpClientConfiguration
public A2AHttpClientConfiguration(List<String> excludedProviderNames, @Nullable SSEParserConfig sseParserConfig, @Nullable RedirectHeaderPolicy redirectHeaderPolicy) Creates an instance of aA2AHttpClientConfigurationrecord class.- Parameters:
excludedProviderNames- the value for theexcludedProviderNamesrecord componentsseParserConfig- the value for thesseParserConfigrecord componentredirectHeaderPolicy- the value for theredirectHeaderPolicyrecord component
-
-
Method Details
-
builder
Returns a builder for a client configuration. -
sseParserConfigOrDefault
Returns the configured SSE parser limits, or the SDK defaults when none were supplied. -
redirectHeaderPolicyOrDefault
Returns the configured redirect policy, or the SDK default when none was supplied. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
excludedProviderNames
Returns the value of theexcludedProviderNamesrecord component.- Returns:
- the value of the
excludedProviderNamesrecord component
-
sseParserConfig
Returns the value of thesseParserConfigrecord component.- Returns:
- the value of the
sseParserConfigrecord component
-
redirectHeaderPolicy
Returns the value of theredirectHeaderPolicyrecord component.- Returns:
- the value of the
redirectHeaderPolicyrecord component
-