Class UriUtils

java.lang.Object
no.hasmac.jsonld.uri.UriUtils

public final class UriUtils extends Object
  • Method Details

    • isURI

      public static boolean isURI(String value)
    • create

      public static URI create(String uriString)
    • endsWithGenDelim

      public static boolean endsWithGenDelim(String uri)
      Check if the provided URI ends with generic delimiter.
      Parameters:
      uri - to check
      Returns:
      true if the provided URI ends with delimiter
      See Also:
    • isNotURI

      public static boolean isNotURI(String uri)
    • isNotAbsoluteUri

      @Deprecated public static boolean isNotAbsoluteUri(String uri)
      Deprecated.
      since 1.3.0
      Deprecated in favor of isNotAbsoluteUri(String, boolean)
      Parameters:
      uri - to check
      Returns:
      true if the given URI is not absolute
    • isNotAbsoluteUri

      public static boolean isNotAbsoluteUri(String uri, boolean validate)
    • isAbsoluteUri

      @Deprecated public static boolean isAbsoluteUri(String uri)
      Deprecated.
      since 1.3.0
      Deprecated in favor of isAbsoluteUri(String, boolean)
      Parameters:
      uri - to check
      Returns:
      true if the given URI is absolute
    • isAbsoluteUri

      public static boolean isAbsoluteUri(String uri, boolean validate)
    • recompose

      protected static String recompose(String scheme, String authority, String path, String query, String fragment)
    • recompose

      protected static String recompose(String path, String query, String fragment)
    • recompose

      protected static String recompose(String query, String fragment)
    • recompose

      protected static String recompose(String fragment)
    • isDefined

      protected static boolean isDefined(String value)
    • isNotDefined

      protected static boolean isNotDefined(String value)