Class StreamingResponseAttributes
java.lang.Object
com.mulesoft.connectors.a2a.api.model.transport.ResponseAttributes
com.mulesoft.connectors.a2a.api.model.transport.StreamingResponseAttributes
- All Implemented Interfaces:
Serializable
Represents the HTTP response attributes for A2A streaming operations (SSE).
This specialized type extends ResponseAttributes with streaming-specific metadata, including information about final
events received during the SSE session. This final event information is not related to the A2A protocol final event, but the
connector's.
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStreamingResponseAttributes(int statusCode, org.mule.runtime.api.util.MultiMap<String, String> headers, String reasonPhrase, Boolean finalEventFound) Creates a new StreamingResponseAttributes instance with the specified status code, headers, reason phrase, and SSE info. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.Gets whether a final event was found during the SSE session.inthashCode()Returns a hash code value for the object.Methods inherited from class com.mulesoft.connectors.a2a.api.model.transport.ResponseAttributes
getHeaders, getReasonPhrase, getStatusCode
-
Constructor Details
-
StreamingResponseAttributes
public StreamingResponseAttributes(int statusCode, org.mule.runtime.api.util.MultiMap<String, String> headers, String reasonPhrase, Boolean finalEventFound) Creates a new StreamingResponseAttributes instance with the specified status code, headers, reason phrase, and SSE info.- Parameters:
statusCode- The HTTP status code of the responseheaders- The HTTP headers to be included in the responsereasonPhrase- The reason phrase associated with the HTTP status codefinalEventFound- Whether a final event was found during SSE session
-
-
Method Details
-
getFinalEventFound
Gets whether a final event was found during the SSE session.- Returns:
- true if a final event was found, false if not, null if not determined
-
equals
Indicates whether some other object is "equal to" this one.- Overrides:
equalsin classResponseAttributes- Parameters:
obj- The reference object with which to compare- Returns:
- true if this object is the same as the obj argument; false otherwise
-
hashCode
public int hashCode()Returns a hash code value for the object.- Overrides:
hashCodein classResponseAttributes- Returns:
- A hash code value for this object
-