- * You can now pass the branch header in the API request to fetch or manage modules located within specific branches of
+ * You can now pass the branch header in the API request to fetch or manage
+ * modules located within specific branches of
* the stack.
*
* @author Shailesh Mishra
@@ -93,16 +97,18 @@ public void setHeader(@NotNull String headerKey, @NotNull String headerValue) {
}
/**
- * Remove header.
- *
- * @param headerKey the header key
- *
- *
+ * The function removes a header from a collection of headers based on a given
+ * key.
+ *
+ * @param headerKey The parameter "headerKey" is a String that represents the
+ * key of the header to
+ * be removed.
*
* Example :
*
*
- * Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment"); Asset asset =
+ * Stack stack = Contentstack.stack("apiKey", "deliveryToken",
+ * "environment"); Asset asset =
* stack.asset(asset_uid); asset.removeHeader();
*
*/
@@ -121,11 +127,11 @@ protected void setUid(@NotNull String assetUid) {
*
* @return the asset uid
*
- *
- *
- * Example :
+ *
+ *
+ * Example :
*
- *
+ *
* Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment"); Asset asset = stack.asset(asset_uid);
* asset.fetch(new FetchResultCallback() { @Override public void onCompletion(ResponseType responseType, Error
* error) { asset.getAssetUid(); } });
@@ -141,15 +147,20 @@ public String getAssetUid() {
*
* @return the file type
*
- *
- *
- * Example :
+ *
+ *
+ * Example :
*
- *
- * Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment"); Asset asset = stack.asset(asset_uid);
- * asset.fetch(new FetchResultCallback() { @Override public void onCompletion(ResponseType responseType, Error
- * error) { asset.getFileType(); } });
- *
+ *
+ * Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment");
+ * Asset asset = stack.asset(asset_uid);
+ * asset.fetch(new FetchResultCallback() {
+ * @Override
+ * public void onCompletion(ResponseType responseType, Error error) {
+ * asset.getFileType();
+ * }
+ * });
+ *
*/
public String getFileType() {
return contentType;
@@ -160,11 +171,11 @@ public String getFileType() {
*
* @return the file size
*
- *
- *
- * Example :
+ *
+ *
+ * Example :
*
- *
+ *
* Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment");
* Asset asset = stack.asset(asset_uid);
* asset.fetch(new FetchResultCallback() {
@@ -185,11 +196,11 @@ public String getFileSize() {
*
* @return the file name
*
- *
- *
- * Example :
+ *
+ *
+ * Example :
*
- *
+ *
* Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment");
* Asset asset = stack.asset(asset_uid);
* asset.fetch(new FetchResultCallback() {
@@ -210,11 +221,11 @@ public String getFileName() {
*
* @return the url
*
- *
- *
- * Example :
+ *
+ *
+ * Example :
*
- *
+ *
* Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment");
* Asset asset = stack.asset(asset_uid);
* asset.fetch(new FetchResultCallback() {
@@ -235,11 +246,11 @@ public String getUrl() {
*
* @return the json object
*
- *
- *
- * Example :
+ *
+ *
+ * Example :
*
- *
+ *
* Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment");
* Asset asset = stack.asset(asset_uid);
* asset.fetch(new FetchResultCallback() {
@@ -259,10 +270,10 @@ public JSONObject toJSON() {
* Gets create at.
*
* @return the create at
- *
- * Example :
+ *
+ * Example :
*
- *
+ *
* Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment");
* Asset asset = stack.asset(asset_uid);
* asset.fetch(new FetchResultCallback() {
@@ -283,11 +294,11 @@ public Calendar getCreateAt() {
*
* @return the created by
*
- *
- *
- * Example :
+ *
+ *
+ * Example :
*
- *
+ *
* Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment");
* Asset asset = stack.asset(asset_uid);
* asset.fetch(new FetchResultCallback() {
@@ -308,11 +319,11 @@ public String getCreatedBy() {
*
* @return the update at
*
- *
- *
- * Example :
+ *
+ *
+ * Example :
*
- *
+ *
* Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment");
* Asset asset = stack.asset(asset_uid);
* asset.fetch(new FetchResultCallback() {
@@ -332,11 +343,11 @@ public Calendar getUpdateAt() {
* Gets updated by.
*
* @return the updated by
- *
- *
- * Example :
+ *
+ *
+ * Example :
*
- *
+ *
* Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment");
* Asset asset = stack.asset(asset_uid);
* asset.fetch(new FetchResultCallback() {
@@ -357,11 +368,11 @@ public String getUpdatedBy() {
*
* @return the delete at
*
- *
- *
- * Example :
+ *
+ *
+ * Example :
*
- *
+ *
* Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment");
* Asset asset = stack.asset(asset_uid);
* asset.fetch(new FetchResultCallback() {
@@ -382,11 +393,11 @@ public Calendar getDeleteAt() {
*
* @return the deleted by
*
- *
- *
- * Example :
+ *
+ *
+ * Example :
*
- *
+ *
* Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment");
* Asset asset = stack.asset(asset_uid);
* asset.fetch(new FetchResultCallback() {
@@ -405,11 +416,11 @@ public String getDeletedBy() {
* Get tags string [ ].
*
* @return the string [ ]
- *
- *
- * Example :
+ *
+ *
+ * Example :
*
- *
+ *
* Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment");
* Asset asset = stack.asset(asset_uid);
* asset.fetch(new FetchResultCallback() {
@@ -435,11 +446,11 @@ protected Asset setTags(String[] tags) {
*
* @return the asset
*
- *
- *
- * Example :
+ *
+ *
+ * Example :
*
- *
+ *
* Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment");
* Asset asset = stack.asset(asset_uid);
* asset.includeDimension();
@@ -457,11 +468,11 @@ public Asset includeDimension() {
* @param paramValue the param value
* @return the asset
*
- *
- *
- * Example :
+ *
+ *
+ * Example :
*
- *
+ *
* Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment");
* Asset asset = stack.asset(asset_uid);
* asset.addParam();
@@ -476,11 +487,11 @@ public Asset addParam(@NotNull String paramKey, @NotNull String paramValue) {
* Include fallback asset.
*
* @return the asset
- *
- *
- * Example :
+ *
+ *
+ * Example :
*
- *
+ *
* Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment");
* Asset asset = stack.asset(asset_uid);
* asset.includeFallback();
@@ -496,11 +507,11 @@ public Asset includeFallback() {
*
* @return {@link Asset} object, so you can chain this call.
*
- *
- *
- * Example :
+ *
+ *
+ * Example :
*
- *
+ *
* Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment"); Asset asset = stack.asset(asset_uid);
* asset.includeBranch();
*
@@ -515,11 +526,11 @@ public Asset includeBranch() {
*
* @return {@link Asset} object, so you can chain this call.
*
- *
- *
- * Example :
+ *
+ *
+ * Example :
*
- *
+ *
* Stack stack = Contentstack.stack("apiKey", "deliveryToken", "environment"); Asset asset = stack.asset(asset_uid);
* asset.includeMetadata();
*
@@ -540,7 +551,7 @@ public void fetch(FetchResultCallback callback) {
}
private void fetchFromNetwork(String url, JSONObject urlQueries, LinkedHashMap