|
||||||||||
| 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.ContextAsset
public class ContextAsset
An asset whose path is relative to the ServletContextcontaining the
application.
| Constructor Summary | |
|---|---|
ContextAsset(java.lang.String contextPath,
org.apache.hivemind.Resource resource,
org.apache.hivemind.Location location,
IRequestCycle cycle)
|
|
| Method Summary | |
|---|---|
java.lang.String |
buildURL()
Generates a URL for the client to retrieve the asset. |
java.io.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 |
| Methods inherited from interface org.apache.tapestry.IAsset |
|---|
getResourceLocation |
| Methods inherited from interface org.apache.hivemind.Locatable |
|---|
getLocation |
| Constructor Detail |
|---|
public ContextAsset(java.lang.String contextPath,
org.apache.hivemind.Resource resource,
org.apache.hivemind.Location location,
IRequestCycle cycle)
| Method Detail |
|---|
public java.lang.String buildURL()
buildURL in interface IAssetpublic java.io.InputStream getResourceAsStream()
IAssetpageis returned.
getResourceAsStream in interface IAsset
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||