com.primix.tapestry.asset
Class ExternalAsset

java.lang.Object
  |
  +--com.primix.tapestry.asset.ExternalAsset
All Implemented Interfaces:
IAsset

public class ExternalAsset
extends java.lang.Object
implements IAsset

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

Version:
$Id: ExternalAsset.java,v 1.4 2001/05/02 14:15:15 hship Exp $
Author:
Howard Ship

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

buildURL

public java.lang.String buildURL(IRequestCycle cycle)
Simply returns the URL of the external asset.
Specified by:
buildURL in interface IAsset

getResourceAsStream

public java.io.InputStream getResourceAsStream(IRequestCycle cycle)
                                        throws ResourceUnavailableException
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.
Specified by:
getResourceAsStream in interface IAsset

toString

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