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

public class HandlerUtils extends Object
  • Field Details

    • LOGGER

      public static final org.slf4j.Logger LOGGER
  • Constructor Details

    • HandlerUtils

      public HandlerUtils()
  • Method Details

    • handleTaskNotFound

      public static void handleTaskNotFound(RpcRequestContext context)
    • handlePushNotificationNotSupported

      public static void handlePushNotificationNotSupported(RpcRequestContext context)
    • handleInternalError

      public static void handleInternalError(RpcRequestContext context)
      Handles internal error by completing the response future with an error response.
    • handleInternalError

      public static void handleInternalError(RpcRequestContext context, Throwable t)
      Handles internal error by completing the response future with an error response.
    • getTaskIdFromPushConfigRequest

      public static String getTaskIdFromPushConfigRequest(A2AProtocolSerializer serializer, JsonRpcRequest rpcRequest)
      Handles internal error by completing the response future with an error response.
    • getPushConfigIdFromPushConfigRequest

      public static String getPushConfigIdFromPushConfigRequest(A2AProtocolSerializer serializer, JsonRpcRequest rpcRequest)
      Handles internal error by completing the response future with an error response.
    • setupResponseHandler

      public static void setupResponseHandler(RequestHandlerContext handlerContext)