All Downloads are FREE. Search and download functionalities are using the official Maven repository.

co.easimart.EasimartRESTCloudCommand Maven / Gradle / Ivy

package co.easimart;

import co.easimart.http.EasimartHttpRequest;

import java.util.Map;

/** package */ class EasimartRESTCloudCommand extends EasimartRESTCommand {

  private EasimartRESTCloudCommand(
          String httpPath,
          EasimartHttpRequest.Method httpMethod,
          Map parameters,
          String sessionToken) {
    super(httpPath, httpMethod, parameters, sessionToken);
  }

  public static EasimartRESTCloudCommand callFunctionCommand(String functionName,
      Map parameters, String sessionToken) {
    final String httpPath = String.format("functions/%s", functionName);
    return new EasimartRESTCloudCommand(
        httpPath, EasimartHttpRequest.Method.POST, parameters, sessionToken);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy