java.lang.Object
com.mulesoft.connectors.a2a.internal.server.agent.utils.ServerAgentUtils

public class ServerAgentUtils extends Object
  • Method Details

    • sendHttpResponse

      public static void sendHttpResponse(int statusCode, String body, org.mule.runtime.http.api.server.async.HttpResponseReadyCallback callback)
    • sendHttpResponse

      public static void sendHttpResponse(int statusCode, String body, org.mule.runtime.api.util.MultiMap<String,String> responseHeaders, org.mule.runtime.http.api.server.async.HttpResponseReadyCallback callback)
    • sendExceptionalHttpResponse

      public static void sendExceptionalHttpResponse(Object jsonRpcRequestId, Throwable t, org.mule.runtime.http.api.server.async.HttpResponseReadyCallback callback, A2ASerializer a2ASerializer)
    • sendPushNotificationNotSupportedResponse

      public static void sendPushNotificationNotSupportedResponse(RequestHandlerContext context)
    • sendStreamingNotSupportedResponse

      public static void sendStreamingNotSupportedResponse(RequestHandlerContext context)
    • sendFailureHttpResponse

      public static void sendFailureHttpResponse(Integer httpStatusCode, A2AErrorTypes errorType, String message, Object jsonRpcRequestId, org.mule.runtime.http.api.server.async.HttpResponseReadyCallback callback, A2ASerializer a2ASerializer)
    • getExceptionalResponse

      public static String getExceptionalResponse(Object jsonRpcRequestId, Throwable t, A2ASerializer a2ASerializer)
    • sendHttpResponse

      public static void sendHttpResponse(org.mule.runtime.http.api.domain.message.response.HttpResponse response, org.mule.runtime.http.api.server.async.HttpResponseReadyCallback callback)
    • sendSubmittedAcceptedResponse

      public static void sendSubmittedAcceptedResponse(Object jsonRpcRequestId, org.mule.runtime.http.api.server.async.HttpResponseReadyCallback callback, String taskId, String contextId, A2ASerializer a2ASerializer)