Class JsonLdUrl

java.lang.Object
com.github.jsonldjava.utils.JsonLdUrl

public class JsonLdUrl extends Object
  • Field Details

    • href

      public String href
    • protocol

      public String protocol
    • host

      public String host
    • auth

      public String auth
    • user

      public String user
    • password

      public String password
    • hostname

      public String hostname
    • port

      public String port
    • relative

      public String relative
    • path

      public String path
    • directory

      public String directory
    • file

      public String file
    • query

      public String query
    • hash

      public String hash
    • pathname

      public String pathname
    • normalizedPath

      public String normalizedPath
    • authority

      public String authority
    • parser

      private static Pattern parser
  • Constructor Details

    • JsonLdUrl

      public JsonLdUrl()
  • Method Details

    • parse

      public static JsonLdUrl parse(String url)
    • removeDotSegments

      public static String removeDotSegments(String path, boolean hasAuthority)
      Removes dot segments from a JsonLdUrl path.
      Parameters:
      path - the path to remove dot segments from.
      hasAuthority - true if the JsonLdUrl has an authority, false if not.
      Returns:
      The URL without the dot segments
    • removeBase

      public static String removeBase(Object baseobj, String iri)
    • resolve

      public static String resolve(String baseUri, String pathToResolve)
    • parseAuthority

      private static void parseAuthority(JsonLdUrl parsed)
      Parses the authority for the pre-parsed given JsonLdUrl.
      Parameters:
      parsed - the pre-parsed JsonLdUrl.