org.apache.tapestry.asset
Class ExternalAsset

java.lang.Object
  extended byorg.apache.tapestry.asset.AbstractAsset
      extended byorg.apache.tapestry.asset.ExternalAsset
All Implemented Interfaces:
IAsset, ILocatable

public class ExternalAsset
extends AbstractAsset

A reference to an external URL. ExternalAssets are not localizable.

Version:
$Id: ExternalAsset.java,v 1.6 2004/02/19 17:38:09 hlship Exp $
Author:
Howard Lewis Ship

Constructor Summary
ExternalAsset(String URL, ILocation location)
           
 
Method Summary
 String buildURL(IRequestCycle cycle)
          Simply returns the URL of the external asset.
 InputStream getResourceAsStream(IRequestCycle cycle)
          Accesses the localized version of the resource (if possible) and returns it as an input stream.
 String toString()
           
 
Methods inherited from class org.apache.tapestry.asset.AbstractAsset
getLocation, getResourceLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExternalAsset

public ExternalAsset(String URL,
                     ILocation location)
Method Detail

buildURL

public String buildURL(IRequestCycle cycle)
Simply returns the URL of the external asset.


getResourceAsStream

public InputStream getResourceAsStream(IRequestCycle cycle)
Description copied from interface: IAsset
Accesses the localized version of the resource (if possible) and returns it as an input stream. A version of the resource localized to the current page is returned.


toString

public String toString()
Overrides:
toString in class AbstractAsset