Interface BrowsingLocation

All Superinterfaces:
HostLocation, PathLocation
All Known Subinterfaces:
WindowLocationProvider
All Known Implementing Classes:
BrowsingLocationImpl

public interface BrowsingLocation extends HostLocation, PathLocation
Author:
Bruno Salmon
  • Method Details

    • getOrigin

      default String 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

      default String getHref()
      Ex: https://developer.mozilla.org/en-US/search?q=URL#search-results-close-container
      Returns:
      A String containing the entire URL.
    • getHost

      default String 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)