Class ServerAgentUtils
java.lang.Object
com.mulesoft.connectors.a2a.internal.server.agent.utils.ServerAgentUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetExceptionalResponse(Object jsonRpcRequestId, Throwable t, A2ASerializer a2ASerializer) static voidsendExceptionalHttpResponse(Object jsonRpcRequestId, Throwable t, org.mule.runtime.http.api.server.async.HttpResponseReadyCallback callback, A2ASerializer a2ASerializer) static voidsendFailureHttpResponse(Integer httpStatusCode, A2AErrorTypes errorType, String message, Object jsonRpcRequestId, org.mule.runtime.http.api.server.async.HttpResponseReadyCallback callback, A2ASerializer a2ASerializer) 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 voidstatic voidstatic voidsendSubmittedAcceptedResponse(Object jsonRpcRequestId, org.mule.runtime.http.api.server.async.HttpResponseReadyCallback callback, String taskId, String contextId, A2ASerializer a2ASerializer)
-
Method Details
-
sendHttpResponse
public static void sendHttpResponse(int statusCode, String body, org.mule.runtime.http.api.server.async.HttpResponseReadyCallback callback) -
sendHttpResponse
-
sendExceptionalHttpResponse
public static void sendExceptionalHttpResponse(Object jsonRpcRequestId, Throwable t, org.mule.runtime.http.api.server.async.HttpResponseReadyCallback callback, A2ASerializer a2ASerializer) -
sendPushNotificationNotSupportedResponse
-
sendStreamingNotSupportedResponse
-
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)
-