Class JSONObjectBlobDecoder
java.lang.Object
org.nuxeo.ecm.automation.core.util.JSONObjectBlobDecoder
- All Implemented Interfaces:
JSONBlobDecoder
Blob decoder resolving a Blob from a given download URL.
Format is:
{ "data": "http://localhost:8080/nuxeo/nxfile/REPOSITORY/DOC_ID/file:content" }
- Since:
- 10.3
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Blob
getBlobFromField
(com.fasterxml.jackson.databind.node.ObjectNode jsonObject, String fieldName) getBlobFromJSON
(com.fasterxml.jackson.databind.node.ObjectNode jsonObject) protected Blob
getBlobFromURL
(String url)
-
Field Details
-
DATA_FIELD_NAME
- See Also:
-
BLOB_URL_FIELD_NAME
- See Also:
-
-
Constructor Details
-
JSONObjectBlobDecoder
public JSONObjectBlobDecoder()
-
-
Method Details
-
getBlobFromJSON
- Specified by:
getBlobFromJSON
in interfaceJSONBlobDecoder
-
getBlobFromField
-
getBlobFromURL
-