Interface IWebsiteMainBaseURL

  • All Superinterfaces:
    IWebsiteBaseURL

    @StableMinor(version="17.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: 26587 $ $Date: 2024-08-26 21:09:17 -0300 (Mon, 26 Aug 2024) $
    See Also:
    IWebsite, IWebsiteBaseURL
    • Method Detail

      • toURL

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

        java.net.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:
        java.lang.IllegalArgumentException - if secure parameter value is incompatible with this base URL.
        Since:
        8.0.0