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: 14145 $ $Date: 2012-03-23 15:31:38 -0300 (Fri, 23 Mar 2012) $
    • 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