Record Class TransportProperties
java.lang.Object
java.lang.Record
io.agentscope.core.a2a.server.transport.TransportProperties
public record TransportProperties(String transportType, String host, Integer port, String path, boolean supportTls, Map<String,Object> extra)
extends Record
Properties for transports.
Usage for auto-generate AgentCard and do register to A2A Registries.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TransportProperties.Builderfinal booleanIndicates whether some other object is "equal to" this one.extra()Returns the value of theextrarecord component.final inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.path()Returns the value of thepathrecord component.port()Returns the value of theportrecord component.booleanReturns the value of thesupportTlsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransportTyperecord component.
-
Constructor Details
-
TransportProperties
public TransportProperties(String transportType, String host, Integer port, String path, boolean supportTls, Map<String, Object> extra) Creates an instance of aTransportPropertiesrecord class.- Parameters:
transportType- the value for thetransportTyperecord componenthost- the value for thehostrecord componentport- the value for theportrecord componentpath- the value for thepathrecord componentsupportTls- the value for thesupportTlsrecord componentextra- the value for theextrarecord component
-
-
Method Details
-
builder
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
transportType
Returns the value of thetransportTyperecord component.- Returns:
- the value of the
transportTyperecord component
-
host
Returns the value of thehostrecord component.- Returns:
- the value of the
hostrecord component
-
port
Returns the value of theportrecord component.- Returns:
- the value of the
portrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
supportTls
public boolean supportTls()Returns the value of thesupportTlsrecord component.- Returns:
- the value of the
supportTlsrecord component
-
extra
Returns the value of theextrarecord component.- Returns:
- the value of the
extrarecord component
-