Class IdentityAssetPathConverter
- java.lang.Object
- 
- org.apache.tapestry5.internal.services.IdentityAssetPathConverter
 
- 
- All Implemented Interfaces:
- AssetPathConverter
 
 public class IdentityAssetPathConverter extends Object implements AssetPathConverter Returns the default asset path unchanged. This is an invariant converter.- Since:
- 5.1.0.0
 
- 
- 
Constructor SummaryConstructors Constructor Description IdentityAssetPathConverter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringconvertAssetPath(String assetPath)Converts the default asset client URI to its final form, ready to be sent to the client.booleanisInvariant()Returns true if the converter returns the exact same converted path for any specific asset path (in which case, the converted asset path may be cached in component instance variables more aggressively).
 
- 
- 
- 
Constructor Detail- 
IdentityAssetPathConverterpublic IdentityAssetPathConverter() 
 
- 
 - 
Method Detail- 
isInvariantpublic boolean isInvariant() Description copied from interface:AssetPathConverterReturns true if the converter returns the exact same converted path for any specific asset path (in which case, the converted asset path may be cached in component instance variables more aggressively). This value should be false if the converted path can vary for the same input path ... that is, if external factors (such as the identity of the user, or information obtained from the request) is involved in generating the final client URI. With a CDN this can sometimes be the case, where the user's identity may indicate which CDN server to vend the asset from.- Specified by:
- isInvariantin interface- AssetPathConverter
- Returns:
- true
 
 - 
convertAssetPathpublic String convertAssetPath(String assetPath) Description copied from interface:AssetPathConverterConverts the default asset client URI to its final form, ready to be sent to the client. The default asset path is an absolute path (it starts with a leading slash) and incorporates the context path if any.- Specified by:
- convertAssetPathin interface- AssetPathConverter
- Parameters:
- assetPath- default asset path
- Returns:
- assetPath unchanged
 
 
- 
 
-