Package org.craftercms.core.url.impl
Class LongToShortUrlTransformer
java.lang.Object
org.craftercms.core.url.impl.LongToShortUrlTransformer
- All Implemented Interfaces:
UrlTransformer
Class description goes HERE
- Author:
- Sumer Jabri, Alfonso Vásquez
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getShortUrl
(String longUrl) void
setContainsShortNameRegex
(String containsShortNameRegex) void
setShortNameRegexGroup
(int shortNameRegexGroup) transformUrl
(Context context, CachingOptions cachingOptions, String url)
-
Field Details
-
URL_NUMBERED_NAME_REGEX
- See Also:
-
URL_NUMBERED_NAME_REGEX_SHORT_NAME_GROUP
public static final int URL_NUMBERED_NAME_REGEX_SHORT_NAME_GROUP- See Also:
-
-
Constructor Details
-
LongToShortUrlTransformer
public LongToShortUrlTransformer()
-
-
Method Details
-
setContainsShortNameRegex
-
setShortNameRegexGroup
public void setShortNameRegexGroup(int shortNameRegexGroup) -
getShortUrl
-
transformUrl
- Specified by:
transformUrl
in interfaceUrlTransformer
-