org.apache.tapestry.asset
Class ExternalAsset
java.lang.Object
|
+--org.apache.tapestry.asset.AbstractAsset
|
+--org.apache.tapestry.asset.ExternalAsset
- All Implemented Interfaces:
- IAsset, ILocatable
- public class ExternalAsset
- extends AbstractAsset
A reference to an external URL. ExternalAsset
s are not
localizable.
- Version:
- $Id: ExternalAsset.java,v 1.4 2003/05/28 13:41:47 hlship Exp $
- Author:
- Howard Lewis Ship
ExternalAsset
public ExternalAsset(String URL,
ILocation location)
buildURL
public String buildURL(IRequestCycle cycle)
- Simply returns the URL of the external asset.
- Following copied from interface:
org.apache.tapestry.IAsset
- Throws:
ApplicationRuntimeException
- if the asset does not exist.
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.- Following copied from interface:
org.apache.tapestry.IAsset
- Throws:
ApplicationRuntimeException
- if the asset does not exist, or
can't be read.
toString
public String toString()
- Overrides:
toString
in class AbstractAsset