Class ResponseAttributes
java.lang.Object
com.mulesoft.connectors.a2a.api.model.transport.ResponseAttributes
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionResponseAttributes(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 TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.Gets the HTTP headers included in the response.Gets the reason phrase associated with the HTTP status code.intGets the HTTP status code of the response.inthashCode()Returns a hash code value for the object.
-
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 responseheaders- The HTTP headers to be included in the responsereasonPhrase- 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
Gets the HTTP headers included in the response.- Returns:
- A MultiMap containing the HTTP headers
-
getReasonPhrase
Gets the reason phrase associated with the HTTP status code.- Returns:
- The reason phrase
-
equals
Indicates whether some other object is "equal to" this one. -
hashCode
public int hashCode()Returns a hash code value for the object.
-