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