Interface HostLocation

All Known Subinterfaces:
BrowsingLocation, WindowLocationProvider
All Known Implementing Classes:
BrowsingLocationImpl

public interface HostLocation
Author:
Bruno Salmon
  • Method Summary

    Modifier and Type
    Method
    Description
    Ex: developer.mozilla.org in https://developer.mozilla.org:443/en-US/search?
    Ex: 443 in https://developer.mozilla.org:443/en-US/search?
    Ex: https in https://developer.mozilla.org/en-US/search?
  • Method Details

    • getProtocol

      String getProtocol()
      Ex: https in https://developer.mozilla.org/en-US/search?q=URL#search-results-close-container
      Returns:
      A String containing the protocol scheme of the URL.
    • getHostname

      String getHostname()
      Ex: developer.mozilla.org in https://developer.mozilla.org:443/en-US/search?q=URL#search-results-close-container
      Returns:
      A String containing the domain of the URL.
    • getPort

      String getPort()
      Ex: 443 in https://developer.mozilla.org:443/en-US/search?q=URL#search-results-close-container
      Returns:
      A String containing the port number of the URL (or blank if not specified)