public interface Asset
toClientURL()
).
Release 5.1.0.0 introduced Asset2
, which extends this interface with an additional
method.AssetPathConverter
Modifier and Type | Method and Description |
---|---|
Resource |
getResource()
Returns the underlying Resource for the Asset.
|
String |
toClientURL()
Returns a URL that can be passed, unchanged, to the client in order for it to access the resource.
|
String toClientURL()
toString()
.
Tapestry's built-in asset types (context and classpath) always incorporate a version number as part of the path,
and alternate implementations are encouraged to do so as well. In addition, Tapestry ensures that context and
classpath assets have a far-future expires header (to ensure aggressive caching by the client).
Resource getResource()
Copyright © 2003-2012 The Apache Software Foundation.