Class RestA2AClient
java.lang.Object
com.flowable.agent.engine.impl.model.a2a.client.BaseA2AClient
com.flowable.agent.engine.impl.model.a2a.client.RestA2AClient
- All Implemented Interfaces:
A2AClient
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.fasterxml.jackson.databind.ObjectMapperFields inherited from class com.flowable.agent.engine.impl.model.a2a.client.BaseA2AClient
restClient, TASK_NOT_FOUND_ERROR_CODE -
Constructor Summary
ConstructorsConstructorDescriptionRestA2AClient(RestClient restClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> TexecuteRequest(RestClient.RequestHeadersSpec<?> spec, String operation, Class<T> clazz, boolean allowTaskNotFound, Map<String, String> additionalHeaders) protected <T> ThandleResponse(ResponseEntity<String> response, Class<T> clazz, String operation, boolean allowTaskNotFound) protected <T> TsendMessage(A2AMessage message, Map<String, String> additionalHeaders)
-
Field Details
-
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
RestA2AClient
public RestA2AClient(RestClient restClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
sendMessage
-
getTask
-
executeRequest
-
handleResponse
protected <T> T handleResponse(ResponseEntity<String> response, Class<T> clazz, String operation, boolean allowTaskNotFound) -
readValue
-