public class ApiRestInvoker
extends java.lang.Object
| Constructor and Description |
|---|
ApiRestInvoker() |
| 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.
|
org.appops.core.deployment.ServiceConfiguration |
getCurrentDeployment()
Getter for the field
currentDeployment. |
HttpHeader |
getHttpHeader() |
org.appops.marshaller.Marshaller |
getMarshaller()
Getter for the field
marshaller. |
ServiceMetaManager |
getServiceStore()
Getter for the field
serviceStore. |
WebClient |
getWebClient()
Getter for the field
webClient. |
java.lang.Object |
invokeRest(org.appops.core.service.meta.ServiceOpMeta opMeta)
Sends rest request to service API and fetches result if expected.
|
void |
setCurrentDeployment(com.google.inject.Provider<org.appops.core.deployment.ServiceConfiguration> currentDeployment)
Setter for the field
currentDeployment. |
void |
setHttpHeader(HttpHeader httpHeader) |
void |
setMarshaller(org.appops.marshaller.Marshaller marshaller)
Setter for the field
marshaller. |
void |
setServiceStore(com.google.inject.Provider<ServiceMetaManager> serviceStore)
Setter for the field
serviceStore. |
void |
setWebClient(com.google.inject.Provider<WebClient> webClient)
Setter for the field
webClient. |
public java.lang.Object 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 - append paramterspublic 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 WebClient getWebClient()
Getter for the field webClient.
WebClient object.@Inject public void setWebClient(com.google.inject.Provider<WebClient> webClient)
Setter for the field webClient.
webClient - a Provider object.public org.appops.marshaller.Marshaller getMarshaller()
Getter for the field marshaller.
Marshaller object.@Inject public void setMarshaller(org.appops.marshaller.Marshaller marshaller)
Setter for the field marshaller.
marshaller - a Marshaller object.public ServiceMetaManager getServiceStore()
Getter for the field serviceStore.
ServiceMetaManager object.@Inject public void setServiceStore(com.google.inject.Provider<ServiceMetaManager> serviceStore)
Setter for the field serviceStore.
serviceStore - a Provider object.public HttpHeader getHttpHeader()
@Inject public void setHttpHeader(HttpHeader httpHeader)
Copyright © 2022. All rights reserved.