Class CustomURLShortener

  • All Implemented Interfaces:
    IURLShortener

    public class CustomURLShortener
    extends Object
    Custom URL shortener. This shortener uses a parameter map to create the API URL to be used by the AbstractURLShortener.
    Since:
    6.1.0
    Version:
    $Revision: 13752 $ $Date: 2011-10-13 14:10:51 -0300 (Thu, 13 Oct 2011) $
    • Field Detail

      • PARAMETER_URL

        public static final String PARAMETER_URL
        This is the URL parameter to be used in API URLs. This parameter will be replaced by the URL to be shortened.
        Since:
        6.1.0
        See Also:
        Constant Field Values
    • Constructor Detail

      • CustomURLShortener

        public CustomURLShortener()
    • Method Detail

      • getParameters

        public Map<String,​String> getParameters()
        Returns the parameter map associated with this shortener.
        Returns:
        the parameter map associated with this shortener.
        Since:
        6.1.0
      • getCustomUrl

        public String getCustomUrl()
                            throws PortalException
        Returns the custom URL set on this shortener.
        Returns:
        the custom URL set on this shortener.
        Throws:
        PortalException
        Since:
        6.1.0