Package com.github.jsonldjava.utils
Class JsonLdUrl
java.lang.Object
com.github.jsonldjava.utils.JsonLdUrl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonLdUrl
private static void
parseAuthority
(JsonLdUrl parsed) Parses the authority for the pre-parsed given JsonLdUrl.static String
removeBase
(Object baseobj, String iri) static String
removeDotSegments
(String path, boolean hasAuthority) Removes dot segments from a JsonLdUrl path.static String
-
Field Details
-
href
-
protocol
-
host
-
auth
-
user
-
password
-
hostname
-
port
-
relative
-
path
-
directory
-
file
-
query
-
hash
-
pathname
-
normalizedPath
-
authority
-
parser
-
-
Constructor Details
-
JsonLdUrl
public JsonLdUrl()
-
-
Method Details
-
parse
-
removeDotSegments
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
-
resolve
-
parseAuthority
Parses the authority for the pre-parsed given JsonLdUrl.- Parameters:
parsed
- the pre-parsed JsonLdUrl.
-