Class BitlyUrlShortenerImpl

  • All Implemented Interfaces:
    UrlShortener

    public class BitlyUrlShortenerImpl
    extends java.lang.Object
    implements UrlShortener
    • Constructor Detail

      • BitlyUrlShortenerImpl

        public BitlyUrlShortenerImpl()
    • Method Detail

      • shortenUrl

        public java.lang.String shortenUrl​(java.lang.String longUrl)
        Specified by:
        shortenUrl in interface UrlShortener
      • setUrlLength

        public void setUrlLength​(int urlLength)
        Parameters:
        urlLength - the urlLength to set
      • setUsername

        public void setUsername​(java.lang.String username)
        Parameters:
        username - the username to set
      • setApiKey

        public void setApiKey​(java.lang.String apiKey)
        Parameters:
        apiKey - the apiKey to set