Class RequestAttributes
java.lang.Object
com.mulesoft.connectors.a2a.api.listener.RequestAttributes
- All Implemented Interfaces:
Serializable
Represents the HTTP request attributes for an A2A incoming request.
This type encapsulates the HTTP request metadata, including query parameters and headers that are received as part of an A2A protocol request.
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRequestAttributes(String taskId, String contextId, org.mule.runtime.api.util.MultiMap<String, String> queryParams, org.mule.runtime.api.util.MultiMap<String, String> headers, String version, String scheme, String method, String localAddress, String remoteAddress, Supplier<CertificateData> clientCertificateSupplier) Creates a new RequestAttributes instance with the specified query parameters and headers. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the HTTP headers received in the request.Gets the query parameters received in the HTTP request.inthashCode()voidsetContextId(String contextId) void
-
Constructor Details
-
RequestAttributes
public RequestAttributes(String taskId, String contextId, org.mule.runtime.api.util.MultiMap<String, String> queryParams, org.mule.runtime.api.util.MultiMap<String, String> headers, String version, String scheme, String method, String localAddress, String remoteAddress, Supplier<CertificateData> clientCertificateSupplier) Creates a new RequestAttributes instance with the specified query parameters and headers.- Parameters:
queryParams- The query parameters from the HTTP requestheaders- The HTTP headers from the request
-
-
Method Details
-
getTaskId
-
setTaskId
-
getContextId
-
setContextId
-
getQueryParams
Gets the query parameters received in the HTTP request.- Returns:
- An immutable MultiMap containing the query parameters
-
getHeaders
Gets the HTTP headers received in the request.- Returns:
- An immutable MultiMap containing the HTTP headers
-
getVersion
-
getScheme
-
getMethod
-
getLocalAddress
-
getRemoteAddress
-
getClientCertificate
-
equals
-
hashCode
public int hashCode()
-