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

public class ServerAgentUtils extends Object
  • Method Details

    • createResponseBody

      public static String createResponseBody(JsonRpcRequest request, RpcRequestContext.Response response, JsonRpcSerializer serializer)
    • 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(JsonRpcRequest request, Throwable t, org.mule.runtime.http.api.server.async.HttpResponseReadyCallback callback, JsonRpcSerializer serializer)
    • sendFailureHttpResponse

      public static void sendFailureHttpResponse(Integer httpStatusCode, A2AErrorTypes errorType, String message, JsonRpcRequest request, org.mule.runtime.http.api.server.async.HttpResponseReadyCallback callback, JsonRpcSerializer serializer)
    • getExceptionalResponse

      public static String getExceptionalResponse(JsonRpcRequest request, Throwable t, JsonRpcSerializer serializer)
    • 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(JsonRpcRequest request, org.mule.runtime.http.api.server.async.HttpResponseReadyCallback callback, JsonRpcSerializer serializer, String taskId)