Class JSONObjectBlobDecoder
- java.lang.Object
-
- org.nuxeo.ecm.automation.core.util.JSONObjectBlobDecoder
-
- All Implemented Interfaces:
JSONBlobDecoder
public class JSONObjectBlobDecoder extends Object implements 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
Fields Modifier and Type Field Description static String
BLOB_URL_FIELD_NAME
static String
DATA_FIELD_NAME
-
Constructor Summary
Constructors Constructor Description JSONObjectBlobDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Blob
getBlobFromField(com.fasterxml.jackson.databind.node.ObjectNode jsonObject, String fieldName)
Blob
getBlobFromJSON(com.fasterxml.jackson.databind.node.ObjectNode jsonObject)
protected Blob
getBlobFromURL(String url)
-
-
-
Field Detail
-
DATA_FIELD_NAME
public static final String DATA_FIELD_NAME
- See Also:
- Constant Field Values
-
BLOB_URL_FIELD_NAME
public static final String BLOB_URL_FIELD_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBlobFromJSON
public Blob getBlobFromJSON(com.fasterxml.jackson.databind.node.ObjectNode jsonObject)
- Specified by:
getBlobFromJSON
in interfaceJSONBlobDecoder
-
getBlobFromField
protected Blob getBlobFromField(com.fasterxml.jackson.databind.node.ObjectNode jsonObject, String fieldName)
-
-