Coverage Report - org.trails.component.blob.IconResolver
 
Classes in this File Line Coverage Branch Coverage Complexity
IconResolver
N/A 
N/A 
1
 
 1  
 package org.trails.component.blob;
 2  
 
 3  
 import org.apache.tapestry.IAsset;
 4  
 
 5  
 /**
 6  
  * An interface to allow the {@link org.trails.component.blob.TrailsDownload} component to resolve icons in a custom
 7  
  * fashion.
 8  
  */
 9  
 public interface IconResolver
 10  
 {
 11  
         /**
 12  
          * Returns an IAsset object for the given MIME type. It will be used as an icon for the download link. 
 13  
          *
 14  
          * @param contentType the MIME type
 15  
          * @return the icon asset for the specified MIME type
 16  
          */
 17  
         IAsset getAsset(String contentType);
 18  
 }