Class LongToShortUrlTransformer

  • All Implemented Interfaces:
    UrlTransformer

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

      • URL_NUMBERED_NAME_REGEX_SHORT_NAME_GROUP

        public static final int URL_NUMBERED_NAME_REGEX_SHORT_NAME_GROUP
        See Also:
        Constant Field Values
    • Constructor Detail

      • LongToShortUrlTransformer

        public LongToShortUrlTransformer()
    • Method Detail

      • setContainsShortNameRegex

        public void setContainsShortNameRegex​(String containsShortNameRegex)
      • setShortNameRegexGroup

        public void setShortNameRegexGroup​(int shortNameRegexGroup)
      • getShortUrl

        protected String getShortUrl​(String longUrl)