Package org.filestack.internal
Class CloudServiceUtil
java.lang.Object
org.filestack.internal.CloudServiceUtil
Functions to help create JSON bodies for Cloud API.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addCloudJson
(com.google.gson.JsonObject base, String cloud, String path, String next) Add JSON object for a cloud.static void
addStorageJson
(com.google.gson.JsonObject base, String cloud, StorageOptions options) Add JSON object for storage options.static com.google.gson.JsonObject
buildBaseJson
(Config config, String session) Deprecated.static com.google.gson.JsonObject
buildBaseJson
(Config config, String session, String returnUrl) Create the base JSON object with properties needed for all requests.
-
Method Details
-
buildBaseJson
Deprecated.explicitly pass returnUrl withbuildBaseJson(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.
-
buildBaseJson(Config, String, String)
instead.