Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.pictures.tiles.api.imageresource
Class BlobResource

java.lang.Object
  extended by org.nuxeo.ecm.platform.pictures.tiles.api.imageresource.BlobResource
All Implemented Interfaces:
Serializable, ImageResource

public class BlobResource
extends Object
implements ImageResource

Blob based implementation of the ImageResource Because ImageResource will be cached this Implementation is not optimal (Blob digest is not compulsory and the modification date is not set).

This implementation is mainly used for unit testing.

Author:
tiry
See Also:
Serialized Form

Constructor Summary
BlobResource(Blob blob)
           
 
Method Summary
 Blob getBlob()
           
 String getHash()
           
 Calendar getModificationDate()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlobResource

public BlobResource(Blob blob)
Method Detail

getBlob

public Blob getBlob()
             throws ClientException
Specified by:
getBlob in interface ImageResource
Throws:
ClientException

getHash

public String getHash()
               throws ClientException
Specified by:
getHash in interface ImageResource
Throws:
ClientException

getModificationDate

public Calendar getModificationDate()
                             throws ClientException
Specified by:
getModificationDate in interface ImageResource
Throws:
ClientException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.