org.apache.tapestry.asset
Class ExternalAsset

java.lang.Object
  extended by org.apache.tapestry.asset.AbstractAsset
      extended by org.apache.tapestry.asset.ExternalAsset
All Implemented Interfaces:
org.apache.hivemind.Locatable, IAsset

public class ExternalAsset
extends AbstractAsset

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

Author:
Howard Lewis Ship

Constructor Summary
ExternalAsset(java.lang.String URL, org.apache.hivemind.Location location)
           
 
Method Summary
 java.lang.String buildURL()
          Simply returns the URL of the external asset.
 java.io.InputStream getResourceAsStream()
          Accesses the localized version of the resource (if possible) and returns it as an input stream.
 java.lang.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(java.lang.String URL,
                     org.apache.hivemind.Location location)
Method Detail

buildURL

public java.lang.String buildURL()
Simply returns the URL of the external asset.


getResourceAsStream

public java.io.InputStream getResourceAsStream()
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 pageis returned.


toString

public java.lang.String toString()
Overrides:
toString in class AbstractAsset