001 package org.tynamo.blob;
002
003 import org.apache.tapestry5.Asset;
004
005
006 /**
007 * An interface to allow the {@link org.trails.component.blob.TrailsDownload} component to resolve icons in a custom
008 * fashion.
009 */
010 public interface IconResolver
011 {
012 /**
013 * Returns an IAsset object for the given MIME type. It will be used as an icon for the download link.
014 *
015 * @param contentType the MIME type
016 * @return the icon asset for the specified MIME type
017 */
018 Asset getAsset(String contentType);
019 }