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

public class StreamingResponseAttributes extends ResponseAttributes
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 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 response
      headers - The HTTP headers to be included in the response
      reasonPhrase - The reason phrase associated with the HTTP status code
      finalEventFound - Whether a final event was found during SSE session
  • Method Details

    • getFinalEventFound

      public Boolean 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

      public boolean equals(Object obj)
      Indicates whether some other object is "equal to" this one.
      Overrides:
      equals in class ResponseAttributes
      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:
      hashCode in class ResponseAttributes
      Returns:
      A hash code value for this object