-
Method Summary
default void
Ex: developer.mozilla.org:443 in https://developer.mozilla.org:443/en-US/search?
Ex: https://developer.mozilla.org/en-US/search?
Ex: https://developer.mozilla.org
default void
-
Method Details
-
getOrigin
Ex: https://developer.mozilla.org
- Returns:
- a String containing the origin of the URL, that is its scheme, its domain and its port.
-
getHref
Ex: https://developer.mozilla.org/en-US/search?q=URL#search-results-close-container
- Returns:
- A String containing the entire URL.
-
getHost
Ex: developer.mozilla.org:443 in https://developer.mozilla.org:443/en-US/search?q=URL#search-results-close-container
- Returns:
- A String containing the host, that is the hostname, a ':', and the port of the URL.
-
assignHref
default void assignHref(String href)
-
replaceHref
default void replaceHref(String href)