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
public class ReplacePatternAllUrlTransformer extends Object implements UrlTransformer
Class description goes HERE- Author:
- Sumer Jabri, Alfonso Vásquez
-
-
Field Summary
Fields Modifier and Type Field Description protected StringpatternToReplaceprotected Stringreplacement
-
Constructor Summary
Constructors Constructor Description ReplacePatternAllUrlTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringdoReplacing(String url)voidsetPatternToReplace(String patternToReplace)voidsetReplacement(String replacement)StringtransformUrl(Context context, CachingOptions cachingOptions, String url)
-
-
-
Method Detail
-
setPatternToReplace
public void setPatternToReplace(String patternToReplace)
-
setReplacement
public void setReplacement(String replacement)
-
transformUrl
public String transformUrl(Context context, CachingOptions cachingOptions, String url) throws UrlTransformationException
- Specified by:
transformUrlin interfaceUrlTransformer- Throws:
UrlTransformationException
-
-