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 String
patternToReplace
protected String
replacement
-
Constructor Summary
Constructors Constructor Description ReplacePatternAllUrlTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
doReplacing(String url)
void
setPatternToReplace(String patternToReplace)
void
setReplacement(String replacement)
String
transformUrl(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:
transformUrl
in interfaceUrlTransformer
- Throws:
UrlTransformationException
-
-