public static class Window.Location
extends java.lang.Object
Location
is a very simple wrapper, so not all browser
quirks are hidden from the user.Modifier and Type | Method and Description |
---|---|
static void |
assign(java.lang.String newURL)
Assigns the window to a new URL.
|
(package private) static java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
buildListParamMap(java.lang.String queryString)
Builds the immutable map from String to List
|
static UrlBuilder |
createUrlBuilder()
Create a
UrlBuilder based on this Window.Location . |
static java.lang.String |
getHash()
Gets the string to the right of the URL's hash.
|
static java.lang.String |
getHost()
Gets the URL's host and port name.
|
static java.lang.String |
getHostName()
Gets the URL's host name.
|
static java.lang.String |
getHref()
Gets the entire URL.
|
static java.lang.String |
getParameter(java.lang.String name)
Gets the URL's parameter of the specified name.
|
static java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getParameterMap()
Returns an immutable Map of the URL query parameters for the host page
at the time this method was called.
|
static java.lang.String |
getPath()
Gets the path to the URL.
|
static java.lang.String |
getPort()
Gets the URL's port.
|
static java.lang.String |
getProtocol()
Gets the URL's protocol.
|
static java.lang.String |
getQueryString()
Gets the URL's query string.
|
static void |
reload()
Reloads the current browser window.
|
static void |
replace(java.lang.String newURL)
Replaces the current URL with a new one.
|
public static void assign(java.lang.String newURL)
newURL
- the new URLpublic static UrlBuilder createUrlBuilder()
UrlBuilder
based on this Window.Location
.public static java.lang.String getHash()
public static java.lang.String getHost()
public static java.lang.String getHostName()
public static java.lang.String getHref()
public static java.lang.String getParameter(java.lang.String name)
name
- the name of the URL's parameterpublic static java.util.Map<java.lang.String,java.util.List<java.lang.String>> getParameterMap()
public static java.lang.String getPath()
public static java.lang.String getPort()
public static java.lang.String getProtocol()
public static java.lang.String getQueryString()
public static void reload()
public static void replace(java.lang.String newURL)
newURL
- the new URLstatic java.util.Map<java.lang.String,java.util.List<java.lang.String>> buildListParamMap(java.lang.String queryString)