org.alfresco.repo.urlshortening
Class BitlyUrlShortenerImpl

java.lang.Object
  extended by org.alfresco.repo.urlshortening.BitlyUrlShortenerImpl
All Implemented Interfaces:
UrlShortener

public class BitlyUrlShortenerImpl
extends java.lang.Object
implements UrlShortener


Constructor Summary
BitlyUrlShortenerImpl()
           
 
Method Summary
 int getUrlLength()
          
 void setApiKey(java.lang.String apiKey)
           
 void setUrlLength(int urlLength)
           
 void setUsername(java.lang.String username)
           
 java.lang.String shortenUrl(java.lang.String longUrl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitlyUrlShortenerImpl

public BitlyUrlShortenerImpl()
Method Detail

shortenUrl

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

getUrlLength

public int getUrlLength()

Specified by:
getUrlLength 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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.