org.nuxeo.ecm.platform.pictures.tiles.api.imageresource
Class BlobResource
java.lang.Object
org.nuxeo.ecm.platform.pictures.tiles.api.imageresource.BlobResource
- All Implemented Interfaces:
- java.io.Serializable, ImageResource
public class BlobResource
- extends java.lang.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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlobResource
public BlobResource(Blob blob)
getBlob
public Blob getBlob()
throws ClientException
- Specified by:
getBlob
in interface ImageResource
- Throws:
ClientException
getHash
public java.lang.String getHash()
throws ClientException
- Specified by:
getHash
in interface ImageResource
- Throws:
ClientException
getModificationDate
public java.util.Calendar getModificationDate()
throws ClientException
- Specified by:
getModificationDate
in interface ImageResource
- Throws:
ClientException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.