public class LongToShortUrlTransformer extends Object implements UrlTransformer
| Modifier and Type | Field and Description |
|---|---|
static String |
URL_NUMBERED_NAME_REGEX |
static int |
URL_NUMBERED_NAME_REGEX_SHORT_NAME_GROUP |
| Constructor and Description |
|---|
LongToShortUrlTransformer() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getShortUrl(String longUrl) |
void |
setContainsShortNameRegex(String containsShortNameRegex) |
void |
setShortNameRegexGroup(int shortNameRegexGroup) |
String |
transformUrl(Context context,
CachingOptions cachingOptions,
String url) |
public static final String URL_NUMBERED_NAME_REGEX
public static final int URL_NUMBERED_NAME_REGEX_SHORT_NAME_GROUP
public void setContainsShortNameRegex(String containsShortNameRegex)
public void setShortNameRegexGroup(int shortNameRegexGroup)
public String transformUrl(Context context, CachingOptions cachingOptions, String url)
transformUrl in interface UrlTransformerCopyright © 2018 CrafterCMS. All rights reserved.