public class AsyncApiRestInvoker<T>
extends java.lang.Object
| Constructor and Description |
|---|
AsyncApiRestInvoker() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
buildUrl(java.lang.String restUrl,
org.appops.core.service.meta.ServiceOpMeta opMeta,
boolean appendParamters)
Builds complete rest url to be used to send rest request.
|
AsyncWebClient |
getAsyncWebClient() |
org.appops.core.deployment.ServiceConfiguration |
getCurrentDeployment()
Getter for the field
currentDeployment. |
org.appops.marshaller.Marshaller |
getMarshaller() |
ServiceMetaManager |
getServiceStore() |
java.util.concurrent.CompletableFuture<?> |
invokeRest(org.appops.core.service.meta.ServiceOpMeta opMeta)
Sends rest request to service API and fetches result if expected.
|
void |
setAsyncWebClient(com.google.inject.Provider<AsyncWebClient> webClient) |
void |
setCurrentDeployment(com.google.inject.Provider<org.appops.core.deployment.ServiceConfiguration> currentDeployment)
Setter for the field
currentDeployment. |
void |
setMarshaller(org.appops.marshaller.Marshaller marshaller) |
void |
setServiceStore(com.google.inject.Provider<ServiceMetaManager> serviceStore) |
public java.util.concurrent.CompletableFuture<?> invokeRest(org.appops.core.service.meta.ServiceOpMeta opMeta)
opMeta - Meta information of an operation which is to be invoked.public java.lang.String buildUrl(java.lang.String restUrl,
org.appops.core.service.meta.ServiceOpMeta opMeta,
boolean appendParamters)
restUrl - Service url.opMeta - Meta information of service api to be called.appendParamters - ppend parameters flagpublic org.appops.core.deployment.ServiceConfiguration getCurrentDeployment()
Getter for the field currentDeployment.
DeploymentConfig object.@Inject public void setCurrentDeployment(com.google.inject.Provider<org.appops.core.deployment.ServiceConfiguration> currentDeployment)
Setter for the field currentDeployment.
currentDeployment - a Provider object.public AsyncWebClient getAsyncWebClient()
@Inject public void setAsyncWebClient(com.google.inject.Provider<AsyncWebClient> webClient)
public org.appops.marshaller.Marshaller getMarshaller()
@Inject public void setMarshaller(org.appops.marshaller.Marshaller marshaller)
public ServiceMetaManager getServiceStore()
@Inject public void setServiceStore(com.google.inject.Provider<ServiceMetaManager> serviceStore)
Copyright © 2022. All rights reserved.