|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 | |
java.lang.String |
buildURL(IRequestCycle cycle)
Returns a URL for the asset, ready to be inserted into the output HTML. |
java.io.InputStream |
getResourceAsStream(IRequestCycle cycle)
Accesses the localized version of the resource (if possible) and returns it as an input stream. |
Method Detail |
public java.lang.String buildURL(IRequestCycle cycle)
Locale
of the current page
) is returned.public java.io.InputStream getResourceAsStream(IRequestCycle cycle) throws ResourceUnavailableException
page
is returned.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |