|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.asset.AbstractAsset
org.apache.tapestry.asset.PrivateAsset
public class PrivateAsset
An implementation of IAsset for localizable assets within the JVM's
classpath.
The localization code here is largely cut-and-paste from ContextAsset.
| Constructor Summary | |
|---|---|
PrivateAsset(org.apache.hivemind.Resource resourceLocation,
IEngineService assetService,
org.apache.hivemind.Location location)
|
|
PrivateAsset(org.apache.hivemind.Resource resourceLocation,
org.apache.hivemind.Location location)
Deprecated. To be removed (someday). Use PrivateAsset(Resource, IEngineService, Location) instead. |
|
| Method Summary | |
|---|---|
String |
buildURL()
Gets the localized version of the resource. |
InputStream |
getResourceAsStream()
Accesses the localized version of the resource (if possible) and returns it as an input stream. |
| Methods inherited from class org.apache.tapestry.asset.AbstractAsset |
|---|
getLocation, getResourceLocation, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PrivateAsset(org.apache.hivemind.Resource resourceLocation,
org.apache.hivemind.Location location)
PrivateAsset(Resource, IEngineService, Location) instead.
public PrivateAsset(org.apache.hivemind.Resource resourceLocation,
IEngineService assetService,
org.apache.hivemind.Location location)
| Method Detail |
|---|
public String buildURL()
ExternalAssetis located, to copy the resource to a directory
visible to the web server.
public InputStream getResourceAsStream()
IAssetpageis returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||