Class HandlerUtils
java.lang.Object
com.mulesoft.connectors.a2a.internal.server.agent.utils.HandlerUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetPushConfigIdFromPushConfigRequest(A2AProtocolSerializer serializer, JsonRpcRequest rpcRequest) Handles internal error by completing the response future with an error response.static StringgetTaskIdFromPushConfigRequest(A2AProtocolSerializer serializer, JsonRpcRequest rpcRequest) Handles internal error by completing the response future with an error response.static voidhandleInternalError(RpcRequestContext context) Handles internal error by completing the response future with an error response.static voidhandleInternalError(RpcRequestContext context, Throwable t) Handles internal error by completing the response future with an error response.static voidstatic voidhandleTaskNotFound(RpcRequestContext context) static voidsetupResponseHandler(RequestHandlerContext handlerContext)
-
Field Details
-
LOGGER
public static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
HandlerUtils
public HandlerUtils()
-
-
Method Details
-
handleTaskNotFound
-
handlePushNotificationNotSupported
-
handleInternalError
Handles internal error by completing the response future with an error response. -
handleInternalError
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
-