* @see org.restlet.resource.ServerResource#get(org.restlet.representation.Variant)
*/
@Override
public Representation get(Variant variant) throws ResourceException {
if (!isExisting()) {
throw new ResourceException(Status.CLIENT_ERROR_NOT_FOUND);
}
IWritableRepresentation tm = null;
try {
tm = _storage.getSnapshot(_collInfo.getCollectionId(),
_snapshotInfo.getSnapshotId(),
MediaTypeUtils.toAtomicoMediaType(variant.getMediaType()));
}
catch (StorageException ex) {
throw new ResourceException(ex);
}
return new WritableAwareRepresentation(variant.getMediaType(), tm,
_snapshotInfo.getUpdated());
}