Package org.kie.kogito.index.api
Class KogitoRuntimeCommonClient
java.lang.Object
org.kie.kogito.index.api.KogitoRuntimeCommonClient
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddServiceWebClient(String serviceUrl, io.vertx.ext.web.client.WebClient webClient) protected voidasyncHttpResponseTreatment(io.vertx.core.AsyncResult<io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer>> res, CompletableFuture future, String logMessage) protected StringgetErrorMessage(String logMessage, io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer> result) protected io.vertx.ext.web.client.WebClientgetWebClient(String runtimeServiceUrl) io.vertx.ext.web.client.WebClientOptionsgetWebClientToURLOptions(String targetHttpURL) rescheduleJob(String serviceURL, Job job, String newJobData) sendDeleteClientRequest(io.vertx.ext.web.client.WebClient webClient, String requestURI, String logMessage) sendPatchClientRequest(io.vertx.ext.web.client.WebClient webClient, String requestURI, String logMessage, io.vertx.core.json.JsonObject jsonBody) voidsetGatewayTargetUrl(Optional<String> gatewayTargetUrl) voidsetIdentity(io.quarkus.security.identity.SecurityIdentity identity) voidsetVertx(io.vertx.core.Vertx vertx)
-
Field Details
-
CANCEL_JOB_PATH
- See Also:
-
RESCHEDULE_JOB_PATH
- See Also:
-
FROM_PROCESS_INSTANCE_WITH_ID
- See Also:
-
vertx
protected io.vertx.core.Vertx vertx -
identity
protected io.quarkus.security.identity.SecurityIdentity identity -
serviceWebClientMap
-
gatewayTargetUrl
-
-
Constructor Details
-
KogitoRuntimeCommonClient
public KogitoRuntimeCommonClient()
-
-
Method Details
-
setGatewayTargetUrl
-
addServiceWebClient
-
getWebClient
-
getWebClientToURLOptions
-
cancelJob
-
rescheduleJob
-
sendDeleteClientRequest
public CompletableFuture sendDeleteClientRequest(io.vertx.ext.web.client.WebClient webClient, String requestURI, String logMessage) -
asyncHttpResponseTreatment
protected void asyncHttpResponseTreatment(io.vertx.core.AsyncResult<io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer>> res, CompletableFuture future, String logMessage) -
sendPatchClientRequest
public CompletableFuture sendPatchClientRequest(io.vertx.ext.web.client.WebClient webClient, String requestURI, String logMessage, io.vertx.core.json.JsonObject jsonBody) -
getErrorMessage
-
getAuthHeader
-
setIdentity
@Inject public void setIdentity(io.quarkus.security.identity.SecurityIdentity identity) -
setVertx
@Inject public void setVertx(io.vertx.core.Vertx vertx)
-