Class CloudFunctionService
java.lang.Object
io.camunda.connector.http.base.cloudfunction.CloudFunctionService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if our internal Google Function should be used to execute theHttpCommonRequestremotely.booleanCheck if the current execution is running in a Google Cloud Function.Tries to parse the error response from the given exception and sets the error code, message, and errorVariables.toCloudFunctionRequest(HttpCommonRequest request) Wraps the given request into a new request that is targeted at the Google function to execute the request remotely.
-
Constructor Details
-
CloudFunctionService
public CloudFunctionService() -
CloudFunctionService
-
-
Method Details
-
toCloudFunctionRequest
Wraps the given request into a new request that is targeted at the Google function to execute the request remotely.- Parameters:
request- the request to be executed remotely- Returns:
- the new request that is targeted at the Google function
-
parseCloudFunctionError
Tries to parse the error response from the given exception and sets the error code, message, and errorVariables.- Parameters:
e- the parsed exception
-
isCloudFunctionEnabled
public boolean isCloudFunctionEnabled()Check if our internal Google Function should be used to execute theHttpCommonRequestremotely. -
isRunningInCloudFunction
public boolean isRunningInCloudFunction()Check if the current execution is running in a Google Cloud Function. -
getProxyFunctionUrl
-