Class 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
    • Constructor Detail

      • JSONObjectBlobDecoder

        public JSONObjectBlobDecoder()
    • Method Detail

      • 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)