Package io.spine.net

Class Urls


  • public final class Urls
    extends Object
    Utility class for working with Url.

    Provides conversion and validation operations.

    • Method Detail

      • create

        public static Url create​(String spec)
        Creates a new instance with the passed spec.

        It is assumed that the passed value is a valid URL. No special checking is performed.

        Parameters:
        spec - a valid, non-null and not-empty URL spec.
        Returns:
        new instance
      • toString

        public static String toString​(Url url)
        Performs String conversion for passed value.
        Parameters:
        url - a value to convert to string
        Returns:
        String representation of the given URL