Interface IWebsiteMainBaseURL

  • All Superinterfaces:
    IWebsiteBaseURL

    @StableMinor(version="14.0",
                 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: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 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