Interface IWebsiteMainBaseURL

  • All Superinterfaces:
    IWebsiteBaseURL

    @StableMinor(version="14.1",
                 sinceVersion="6.2")
    public interface IWebsiteMainBaseURL
    extends IWebsiteBaseURL
    A base URL that is a main base URL of a website.

    A main base URL of a website is the one used to generate the absolute URLs for a website when necessary.

    Since:
    6.2.0
    Version:
    $Revision: 24683 $ $Date: 2021-08-23 18:55:58 -0300 (Mon, 23 Aug 2021) $
    See Also:
    IWebsite, IWebsiteBaseURL
    • Method Detail

      • toURL

        URL toURL()
        Returns a URL object that corresponds to this base URL.
        Returns:
        the URL object.
        Since:
        6.2.0
      • toURI

        URI toURI​(boolean secure)
        Description copied from interface: IWebsiteBaseURL
        Returns this base URL as a URI object.
        Specified by:
        toURI in interface IWebsiteBaseURL
        Parameters:
        secure - whether the URI returned is to use a secure schema or not.
        Returns:
        the URI.
        Throws:
        IllegalArgumentException - if secure parameter value is incompatible with this base URL.
        Since:
        8.0.0