Package org.craftercms.core.url.impl
Class ReplacePatternAllUrlTransformer
java.lang.Object
org.craftercms.core.url.impl.ReplacePatternAllUrlTransformer
- All Implemented Interfaces:
UrlTransformer
- Direct Known Subclasses:
ReplacePatternFirstUrlTransformer
Class description goes HERE
- Author:
- Sumer Jabri, Alfonso Vásquez
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdoReplacing(String url) voidsetPatternToReplace(String patternToReplace) voidsetReplacement(String replacement) transformUrl(Context context, CachingOptions cachingOptions, String url)
-
Field Details
-
patternToReplace
-
replacement
-
-
Constructor Details
-
ReplacePatternAllUrlTransformer
public ReplacePatternAllUrlTransformer()
-
-
Method Details
-
setPatternToReplace
-
setReplacement
-
transformUrl
public String transformUrl(Context context, CachingOptions cachingOptions, String url) throws UrlTransformationException - Specified by:
transformUrlin interfaceUrlTransformer- Throws:
UrlTransformationException
-
doReplacing
-