Class LongToShortUrlTransformer

java.lang.Object
org.craftercms.core.url.impl.LongToShortUrlTransformer
All Implemented Interfaces:
UrlTransformer

public class LongToShortUrlTransformer extends Object implements UrlTransformer
Class description goes HERE
Author:
Sumer Jabri, Alfonso Vásquez
  • Field Details

    • URL_NUMBERED_NAME_REGEX

      public static final String 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

      public void setContainsShortNameRegex(String containsShortNameRegex)
    • setShortNameRegexGroup

      public void setShortNameRegexGroup(int shortNameRegexGroup)
    • getShortUrl

      protected String getShortUrl(String longUrl)
    • transformUrl

      public String transformUrl(Context context, CachingOptions cachingOptions, String url)
      Specified by:
      transformUrl in interface UrlTransformer