java.lang.Object
com.mulesoft.connectors.a2a.internal.util.A2AUtils

public final class A2AUtils extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.mule.runtime.api.util.MultiMap<String,String>
    copy(org.mule.runtime.api.util.MultiMap<String,String> map)
    Creates an immutable copy of a MultiMap.
    static boolean
    isFinalEvent(io.a2a.spec.StreamingEventKind eventData)
    Checks if sse event data represents a final TaskStatusUpdateEvent using A2A SDK.
    static org.mule.runtime.http.api.domain.message.request.HttpRequestBuilder
    newRequestBuilder(org.mule.extension.http.api.request.authentication.HttpRequestAuthentication authentication)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • copy

      public static org.mule.runtime.api.util.MultiMap<String,String> copy(org.mule.runtime.api.util.MultiMap<String,String> map)
      Creates an immutable copy of a MultiMap.
      Parameters:
      map - The MultiMap to copy
      Returns:
      An immutable copy of the input map, or an empty map if the input is null
    • newRequestBuilder

      public static org.mule.runtime.http.api.domain.message.request.HttpRequestBuilder newRequestBuilder(org.mule.extension.http.api.request.authentication.HttpRequestAuthentication authentication)
    • isFinalEvent

      public static boolean isFinalEvent(io.a2a.spec.StreamingEventKind eventData)
      Checks if sse event data represents a final TaskStatusUpdateEvent using A2A SDK. Only TaskStatusUpdateEvent can have a final field.