Package org.craftercms.core.url.impl
Class AbstractCachedUrlTransformationEngine
- java.lang.Object
-
- org.craftercms.core.url.impl.AbstractCachedUrlTransformationEngine
-
- All Implemented Interfaces:
UrlTransformationEngine
- Direct Known Subclasses:
UrlTransformationEngineImpl
public abstract class AbstractCachedUrlTransformationEngine extends Object implements UrlTransformationEngine
Class description goes HERE- Author:
- Alfonso Vásquez
-
-
Field Summary
Fields Modifier and Type Field Description protected CacheTemplate
cacheTemplate
static String
TRANSFORMED_URL_CONST_KEY_ELEM
-
Constructor Summary
Constructors Constructor Description AbstractCachedUrlTransformationEngine()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract String
doTransformUrl(Context context, CachingOptions cachingOptions, String transformerName, String url)
void
setCacheTemplate(CacheTemplate cacheTemplate)
String
transformUrl(Context context, String transformerName, String url)
String
transformUrl(Context context, CachingOptions cachingOptions, String transformerName, String url)
-
-
-
Field Detail
-
TRANSFORMED_URL_CONST_KEY_ELEM
public static final String TRANSFORMED_URL_CONST_KEY_ELEM
- See Also:
- Constant Field Values
-
cacheTemplate
protected CacheTemplate cacheTemplate
-
-
Method Detail
-
setCacheTemplate
public void setCacheTemplate(CacheTemplate cacheTemplate)
-
transformUrl
public String transformUrl(Context context, String transformerName, String url) throws UrlTransformationException
- Specified by:
transformUrl
in interfaceUrlTransformationEngine
- Throws:
UrlTransformationException
-
transformUrl
public String transformUrl(Context context, CachingOptions cachingOptions, String transformerName, String url) throws UrlTransformationException
- Specified by:
transformUrl
in interfaceUrlTransformationEngine
- Throws:
UrlTransformationException
-
doTransformUrl
protected abstract String doTransformUrl(Context context, CachingOptions cachingOptions, String transformerName, String url) throws UrlTransformationException
- Throws:
UrlTransformationException
-
-