|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IAsset
Representation of a asset (GIF, JPEG, etc.) that may be owned by a
IComponent.
Assets may be completely external (i.e., on some other web site),
contained by the ServletContext,
or stored somewhere in the classpath.
In the latter two cases, the resource may be localized.
| Method Summary | |
|---|---|
String |
buildURL(IRequestCycle cycle)
Returns a URL for the asset, ready to be inserted into the output HTML. |
InputStream |
getResourceAsStream(IRequestCycle cycle)
Accesses the localized version of the resource (if possible) and returns it as an input stream. |
IResourceLocation |
getResourceLocation()
Returns the underlying location of the asset. |
| Methods inherited from interface org.apache.tapestry.ILocatable |
|---|
getLocation |
| Method Detail |
|---|
String buildURL(IRequestCycle cycle)
Locale of the current page) is returned.
ApplicationRuntimeException - if the asset does not exist.InputStream getResourceAsStream(IRequestCycle cycle)
page is returned.
ApplicationRuntimeException - if the asset does not exist, or
can't be read.IResourceLocation getResourceLocation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||