public class ShortToLongUrlTransformer extends Object implements UrlTransformer
| Constructor and Description |
|---|
ShortToLongUrlTransformer() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getLongName(Context context,
CachingOptions cachingOptions,
String folderPath,
String shortName) |
protected String |
getLongUrl(Context context,
CachingOptions cachingOptions,
String shortUrl,
boolean useShortNameIfLongNameNotFound) |
void |
setContainsShortNameRegex(String containsShortNameRegex) |
void |
setShortNameRegexGroup(int shortNameRegexGroup) |
String |
transformUrl(Context context,
CachingOptions cachingOptions,
String url) |
public void setContainsShortNameRegex(String containsShortNameRegex)
public void setShortNameRegexGroup(int shortNameRegexGroup)
public String transformUrl(Context context, CachingOptions cachingOptions, String url) throws UrlTransformationException
transformUrl in interface UrlTransformerUrlTransformationExceptionprotected String getLongName(Context context, CachingOptions cachingOptions, String folderPath, String shortName) throws UrlTransformationException
UrlTransformationExceptionprotected String getLongUrl(Context context, CachingOptions cachingOptions, String shortUrl, boolean useShortNameIfLongNameNotFound) throws UrlTransformationException
UrlTransformationExceptionCopyright © 2018 CrafterCMS. All rights reserved.