Class RenditionObject

    • Field Detail

      • servletRequest

        @Context
        protected javax.servlet.http.HttpServletRequest servletRequest
      • renditionName

        protected String renditionName
    • Constructor Detail

      • RenditionObject

        public RenditionObject()
    • Method Detail

      • getAdapter

        public <A> A getAdapter​(Class<A> adapter)
        Description copied from interface: Adaptable
        Returns an object which is an instance of the given class associated with this object. Returns null if no such object can be found.
        Specified by:
        getAdapter in interface Adaptable
        Overrides:
        getAdapter in class AbstractResource<ResourceTypeImpl>
        Parameters:
        adapter - the adapter class to look up
        Returns:
        a object castable to the given class, or null if this object does not have an adapter for the given class
      • getLegacyRenditionBlob

        protected Blob getLegacyRenditionBlob()
      • getRenditionBlob

        protected Blob getRenditionBlob()
      • doGet

        public Object doGet​(@Context
                            javax.ws.rs.core.Request request,
                            boolean sync)
        Get the rendition blob.

        In legacy mode (nuxeo.rendition.legacy.enabled=true) all renditions are performed on the front nodes with the risk of overflow when processing lots of large renditions on the fly.

        In normal mode renditions are processed asynchronously in worker nodes and cached in order to scale, for light renditions that are already preprocessed (like thumbnails) it is possible to use the sync=true parameter to force rendition on front node avoiding possible async latency.