Interface Url.UrlBuilder

    • Method Detail

      • fromUrl

        default void fromUrl​(java.lang.String aUrl)
                      throws java.net.MalformedURLException
        USes the given String to set the Url's state.
        Parameters:
        aUrl - The URL from which to determine the state.
        Throws:
        java.net.MalformedURLException - in case the provided URL is considered being malformed.
      • fromURL

        default void fromURL​(java.net.URL aUrl)
      • withScheme

        default Url.UrlBuilder withScheme​(org.refcodes.data.Scheme aScheme)
        Sets the UrlScheme for the URL scheme.
        Specified by:
        withScheme in interface SchemeAccessor.SchemeBuilder<Url.UrlBuilder>
        Parameters:
        aScheme - The UrlScheme to be stored by the URL scheme.
        Returns:
        The builder for applying multiple build operations.
      • withCidrNotation

        default Url.UrlBuilder withCidrNotation​(java.lang.String aCidrNotation)
        Constructs the IP-Address from the given String and sets it for the IP-Address property. The String must be provided in CIDR notation as of "https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing#CIDR_notation".
        Specified by:
        withCidrNotation in interface IpAddressAccessor.IpAddressBuilder<Url.UrlBuilder>
        Parameters:
        aCidrNotation - The IP-Address String in CIDR notation to be converted and stored by the IP-Address property.
        Returns:
        The builder for applying multiple build operations.
      • withPort

        default Url.UrlBuilder withPort​(int aPort)
        Specified by:
        withPort in interface org.refcodes.mixin.PortAccessor.PortBuilder<Url.UrlBuilder>
      • withPath

        default Url.UrlBuilder withPath​(java.lang.String aPath)
        Specified by:
        withPath in interface org.refcodes.mixin.PathAccessor.PathBuilder<Url.UrlBuilder>
      • withIdentity

        default Url.UrlBuilder withIdentity​(java.lang.String aIdentity)
        Specified by:
        withIdentity in interface org.refcodes.mixin.IdentityAccessor.IdentityBuilder<Url.UrlBuilder>
      • withSecret

        default Url.UrlBuilder withSecret​(java.lang.String aSecret)
        Specified by:
        withSecret in interface org.refcodes.mixin.SecretAccessor.SecretBuilder<Url.UrlBuilder>