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 UrlShortenerpublic int getUrlLength()
getUrlLength in interface UrlShortenerpublic 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–2018 Alfresco Software. All rights reserved.