Class BrowsingLocationImpl
java.lang.Object
dev.webfx.platform.windowlocation.spi.impl.PathLocationImpl
dev.webfx.platform.windowlocation.spi.impl.BrowsingLocationImpl
- All Implemented Interfaces:
BrowsingLocation
,HostLocation
,PathLocation
- Author:
- Bruno Salmon
-
Constructor Summary
ConstructorsConstructorDescriptionBrowsingLocationImpl
(String protocol, String hostname, String port, PathLocation pathLocation) BrowsingLocationImpl
(String protocol, String hostname, String port, String pathname, String queryString, String fragment) -
Method Summary
Modifier and TypeMethodDescriptionstatic BrowsingLocationImpl
static BrowsingLocationImpl
Ex: developer.mozilla.org in https://developer.mozilla.org:443/en-US/search?getPort()
Ex: 443 in https://developer.mozilla.org:443/en-US/search?Ex: https in https://developer.mozilla.org/en-US/search?Methods inherited from class dev.webfx.platform.windowlocation.spi.impl.PathLocationImpl
equals, getFragment, getPathname, getQueryString, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.webfx.platform.windowlocation.spi.BrowsingLocation
assignHref, getHost, getHref, getOrigin, replaceHref
Methods inherited from interface dev.webfx.platform.windowlocation.spi.PathLocation
getFragment, getHash, getPath, getPathname, getQueryString, getSearch
-
Constructor Details
-
BrowsingLocationImpl
public BrowsingLocationImpl(String protocol, String hostname, String port, PathLocation pathLocation) -
BrowsingLocationImpl
-
-
Method Details
-
getProtocol
Description copied from interface:HostLocation
Ex: https in https://developer.mozilla.org/en-US/search?q=URL#search-results-close-container- Specified by:
getProtocol
in interfaceHostLocation
- Returns:
- A String containing the protocol scheme of the URL.
-
getHostname
Description copied from interface:HostLocation
Ex: developer.mozilla.org in https://developer.mozilla.org:443/en-US/search?q=URL#search-results-close-container- Specified by:
getHostname
in interfaceHostLocation
- Returns:
- A String containing the domain of the URL.
-
getPort
Description copied from interface:HostLocation
Ex: 443 in https://developer.mozilla.org:443/en-US/search?q=URL#search-results-close-container- Specified by:
getPort
in interfaceHostLocation
- Returns:
- A String containing the port number of the URL (or blank if not specified)
-
fromHref
-
fromHref
-