Class CloudFunctionService

java.lang.Object
io.camunda.connector.http.base.cloudfunction.CloudFunctionService

public class CloudFunctionService extends Object
  • Constructor Details

    • CloudFunctionService

      public CloudFunctionService()
    • CloudFunctionService

      public CloudFunctionService(CloudFunctionCredentials credentials)
  • Method Details

    • toCloudFunctionRequest

      public HttpCommonRequest toCloudFunctionRequest(HttpCommonRequest request)
      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

      public ConnectorException parseCloudFunctionError(ConnectorException e)
      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 the HttpCommonRequest remotely.
    • isRunningInCloudFunction

      public boolean isRunningInCloudFunction()
      Check if the current execution is running in a Google Cloud Function.
    • getProxyFunctionUrl

      public String getProxyFunctionUrl()