public class BitlyUrlShortenerImpl extends Object implements UrlShortener
Constructor and Description |
---|
BitlyUrlShortenerImpl() |
Modifier and Type | Method and Description |
---|---|
int |
getUrlLength() |
void |
setApiKey(String apiKey) |
void |
setUrlLength(int urlLength) |
void |
setUsername(String username) |
String |
shortenUrl(String longUrl) |
public String shortenUrl(String longUrl)
shortenUrl
in interface UrlShortener
public int getUrlLength()
getUrlLength
in interface UrlShortener
public void setUrlLength(int urlLength)
urlLength
- the urlLength to setpublic void setUsername(String username)
username
- the username to setpublic void setApiKey(String apiKey)
apiKey
- the apiKey to setCopyright © 2005–2017 Alfresco Software. All rights reserved.