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 Details

  • Constructor Details

    • JSONObjectBlobDecoder

      public JSONObjectBlobDecoder()
  • Method Details

    • getBlobFromJSON

      public Blob getBlobFromJSON(com.fasterxml.jackson.databind.node.ObjectNode jsonObject)
      Specified by:
      getBlobFromJSON in interface JSONBlobDecoder
    • getBlobFromField

      protected Blob getBlobFromField(com.fasterxml.jackson.databind.node.ObjectNode jsonObject, String fieldName)
    • getBlobFromURL

      protected Blob getBlobFromURL(String url)