Class CloudServiceUtil

java.lang.Object
org.filestack.internal.CloudServiceUtil

public class CloudServiceUtil extends Object
Functions to help create JSON bodies for Cloud API.
  • Method Details

    • buildBaseJson

      @Deprecated public static com.google.gson.JsonObject buildBaseJson(Config config, String session)
      Deprecated.
      explicitly pass returnUrl with buildBaseJson(Config, String, String) instead.
      Create the base JSON object with properties needed for all requests.
    • buildBaseJson

      public static com.google.gson.JsonObject buildBaseJson(Config config, @Nullable String session, @Nullable String returnUrl)
      Create the base JSON object with properties needed for all requests.
    • addCloudJson

      public static void addCloudJson(com.google.gson.JsonObject base, String cloud, @Nullable String path, @Nullable String next)
      Add JSON object for a cloud. For list, store, and logout requests.
    • addStorageJson

      public static void addStorageJson(com.google.gson.JsonObject base, String cloud, StorageOptions options)
      Add JSON object for storage options.