Package lumis.portal.urlshortener
Interface IURLShortener
-
- All Known Implementing Classes:
CustomURLShortener
,DummyURLShortener
,TinyURLShortener
public interface IURLShortener
Represents an URL shortener. Implementations are responsible for shortening a given URL.- Since:
- 6.1.0
- Version:
- $Revision$ $Date$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
shorten(java.lang.String url)
Shortens a given URL.
-
-
-
Method Detail
-
shorten
java.lang.String shorten(java.lang.String url) throws PortalException
Shortens a given URL.- Parameters:
url
- the URL to be shortened.- Returns:
- the shortened URL.
- Throws:
PortalException
- if some error occur in shortening process.- Since:
- 6.1.0
-
-