Class ServerAgentUtils
java.lang.Object
com.mulesoft.connectors.a2a.internal.server.agent.utils.ServerAgentUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreateResponseBody(JsonRpcRequest request, RpcRequestContext.Response response, JsonRpcSerializer serializer) static StringgetExceptionalResponse(JsonRpcRequest request, Throwable t, JsonRpcSerializer serializer) static voidsendExceptionalHttpResponse(JsonRpcRequest request, Throwable t, org.mule.runtime.http.api.server.async.HttpResponseReadyCallback callback, JsonRpcSerializer serializer) static voidsendFailureHttpResponse(Integer httpStatusCode, A2AErrorTypes errorType, String message, JsonRpcRequest request, org.mule.runtime.http.api.server.async.HttpResponseReadyCallback callback, JsonRpcSerializer serializer) static voidsendHttpResponse(int statusCode, String body, org.mule.runtime.api.util.MultiMap<String, String> responseHeaders, org.mule.runtime.http.api.server.async.HttpResponseReadyCallback callback) static voidsendHttpResponse(int statusCode, String body, org.mule.runtime.http.api.server.async.HttpResponseReadyCallback callback) static voidsendHttpResponse(org.mule.runtime.http.api.domain.message.response.HttpResponse response, org.mule.runtime.http.api.server.async.HttpResponseReadyCallback callback) static voidsendSubmittedAcceptedResponse(JsonRpcRequest request, org.mule.runtime.http.api.server.async.HttpResponseReadyCallback callback, JsonRpcSerializer serializer, String taskId)
-
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
-
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)
-