Record Class McpSseClientProperties.SseParameters
java.lang.Object
java.lang.Record
org.springframework.ai.mcp.client.autoconfigure.properties.McpSseClientProperties.SseParameters
- Record Components:
url- the URL endpoint for SSE communication with the MCP serversseEndpoint- the SSE endpoint for the MCP server
- Enclosing class:
- McpSseClientProperties
public static record McpSseClientProperties.SseParameters(String url, String sseEndpoint)
extends Record
Parameters for configuring an SSE connection to an MCP server.
-
Constructor Summary
ConstructorsConstructorDescriptionSseParameters(String url, String sseEndpoint) Creates an instance of aSseParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesseEndpointrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
SseParameters
Creates an instance of aSseParametersrecord class.- Parameters:
url- the value for theurlrecord componentsseEndpoint- the value for thesseEndpointrecord component
-
-
Method Details
-
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). -
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
sseEndpoint
Returns the value of thesseEndpointrecord component.- Returns:
- the value of the
sseEndpointrecord component
-