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 String
doReplacing
(String url) void
setPatternToReplace
(String patternToReplace) void
setReplacement
(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:
transformUrl
in interfaceUrlTransformer
- Throws:
UrlTransformationException
-
doReplacing
-