Class ResponseAttributes

java.lang.Object
com.mulesoft.connectors.a2a.api.model.transport.ResponseAttributes
All Implemented Interfaces:
Serializable

public class ResponseAttributes extends Object implements Serializable
Represents the HTTP response attributes for an A2A request.

This type encapsulates HTTP response metadata, including status code, headers, and reason phrase that are sent as part of an A2A protocol response.

Since:
1.0.0
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    ResponseAttributes(int statusCode, org.mule.runtime.api.util.MultiMap<String,String> headers, String reasonPhrase)
    Creates a new ResponseAttributes instance with the specified status code, headers, and reason phrase.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether some other object is "equal to" this one.
    org.mule.runtime.api.util.MultiMap<String,String>
    Gets the HTTP headers included in the response.
    Gets the reason phrase associated with the HTTP status code.
    int
    Gets the HTTP status code of the response.
    int
    Returns a hash code value for the object.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ResponseAttributes

      public ResponseAttributes(int statusCode, org.mule.runtime.api.util.MultiMap<String,String> headers, String reasonPhrase)
      Creates a new ResponseAttributes instance with the specified status code, headers, and reason phrase.
      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
  • Method Details

    • getStatusCode

      public int getStatusCode()
      Gets the HTTP status code of the response.
      Returns:
      The HTTP status code
    • getHeaders

      public org.mule.runtime.api.util.MultiMap<String,String> getHeaders()
      Gets the HTTP headers included in the response.
      Returns:
      A MultiMap containing the HTTP headers
    • getReasonPhrase

      public String getReasonPhrase()
      Gets the reason phrase associated with the HTTP status code.
      Returns:
      The reason phrase
    • equals

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