org.tynamo.blob
Class DefaultIconResolver

java.lang.Object
  extended by org.tynamo.blob.DefaultIconResolver
All Implemented Interfaces:
IconResolver

public class DefaultIconResolver
extends Object
implements IconResolver

The Trails org.trails.component.blob.IconResolver default implementation.


Field Summary
static String DEFAULT_CONTENT_TYPE
           
 
Constructor Summary
DefaultIconResolver(org.apache.tapestry5.services.AssetFactory classpathAssetFactory)
           
 
Method Summary
 org.apache.tapestry5.Asset getAsset(String contentType)
          Returns an IAsset object for the given MIME type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONTENT_TYPE

public static final String DEFAULT_CONTENT_TYPE
See Also:
Constant Field Values
Constructor Detail

DefaultIconResolver

public DefaultIconResolver(org.apache.tapestry5.services.AssetFactory classpathAssetFactory)
Method Detail

getAsset

public org.apache.tapestry5.Asset getAsset(String contentType)
Description copied from interface: IconResolver
Returns an IAsset object for the given MIME type. It will be used as an icon for the download link.

Specified by:
getAsset in interface IconResolver
Parameters:
contentType - the MIME type
Returns:
the icon asset for the specified MIME type


Copyright © 2004-2009. All Rights Reserved.