Class ResponseJsonUtils
java.lang.Object
org.alfresco.repo.search.impl.elasticsearch.contentmodelsync.utils.ResponseJsonUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringextractErrorReason(String jsonBody) Extracts the error reason from a JSON response body.
-
Constructor Details
-
ResponseJsonUtils
public ResponseJsonUtils()
-
-
Method Details
-
extractErrorReason
Extracts the error reason from a JSON response body.- Parameters:
jsonBody- the JSON response body- Returns:
- the error reason if present, otherwise the entire jsonBody
-