public class AssetPathConstructorImpl extends Object implements AssetPathConstructor
| Constructor and Description |
|---|
AssetPathConstructorImpl(Request request,
BaseURLSource baseURLSource,
boolean fullyQualified,
String uncompressedAssetPrefix,
PathConstructor pathConstructor,
AssetPathConverter pathConverter) |
| Modifier and Type | Method and Description |
|---|---|
String |
constructAssetPath(String virtualFolder,
String path,
StreamableResource resource)
Constructs an asset URL path from the virtual folder and path (within the virtual folder).
|
public AssetPathConstructorImpl(Request request, BaseURLSource baseURLSource, @Symbol(value="tapestry.asset-url-fully-qualified") boolean fullyQualified, @Symbol(value="tapestry.asset-path-prefix") String uncompressedAssetPrefix, PathConstructor pathConstructor, AssetPathConverter pathConverter)
public String constructAssetPath(String virtualFolder, String path, StreamableResource resource) throws IOException
AssetPathConstructorSymbolConstants.ASSET_URL_FULL_QUALIFIED
symbol), the result is passed through the AssetPathConverter.constructAssetPath in interface AssetPathConstructorvirtualFolder - corresponds to a AssetRequestHandler contributed to the AssetDispatcher servicepath - a path that can be used to identify the underlying Resource or
or re-acquire the StreamableResource; this will be the final portion of the URL, after
the appropriate prefix (based on whether the resource is compressed or not) and the checksum for the
resourceresource - underlying resource for the asset path; the checksum portion of the URL is obtained from the resourceAssetDispatcher
to find and stream the resourceIOExceptionStreamableResourceSource5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.