org.apache.tapestry.asset
Class ExternalAsset
java.lang.Object
org.apache.tapestry.asset.AbstractAsset
org.apache.tapestry.asset.ExternalAsset
- All Implemented Interfaces:
- org.apache.hivemind.Locatable, IAsset
public class ExternalAsset
- extends AbstractAsset
A reference to an external URL. ExternalAsset
s are not
localizable.
- Author:
- Howard Lewis Ship
ExternalAsset
public ExternalAsset(String URL,
org.apache.hivemind.Location location)
buildURL
public String buildURL()
- Simply returns the URL of the external asset.
getResourceAsStream
public 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
page
is returned.
toString
public String toString()
- Overrides:
toString
in class AbstractAsset
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.