@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="URL")
public class URL
extends JsObject
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
hash
The hash property of the URL interface is a USVString containing a '#' followed by the fragment identifier of the URL.
|
java.lang.String |
host
The host property of the URL interface is a USVString containing the host, that is the hostname, and then, if the port of the URL is nonempty, a ':', followed by the port of the URL.
|
java.lang.String |
hostname
The hostname property of the URL interface is a USVString containing the domain name of the URL.
|
java.lang.String |
href
The href property of the URL interface is a USVString containing the whole URL.
|
java.lang.String |
password
The password property of the URL interface is a USVString containing the password specified before the domain name.
|
java.lang.String |
pathname
The pathname property of the URL interface is a USVString containing an initial '/' followed by the path of the URL (or the empty string if there is no path).
|
java.lang.String |
port
The port property of the URL interface is a USVString containing the port number of the URL.
|
java.lang.String |
protocol
The protocol property of the URL interface is a USVString representing the protocol scheme of the URL, including the final ':'.
|
java.lang.String |
search
The search property of the URL interface is a search string, also called a query string, that is a USVString containing a '?' followed by the parameters of the URL.
|
java.lang.String |
username
The username property of the URL interface is a USVString containing the username specified before the domain name.
|
| Constructor and Description |
|---|
URL(java.lang.String url)
The URL() constructor returns a newly created URL object representing the URL defined by the parameters.
|
URL(java.lang.String url,
java.lang.String base)
The URL() constructor returns a newly created URL object representing the URL defined by the parameters.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
createObjectURL(Blob blob)
The URL.createObjectURL() static method creates a DOMString containing a URL representing the object given in the parameter.
|
static java.lang.String |
createObjectURL(MediaSource mediaSource)
The URL.createObjectURL() static method creates a DOMString containing a URL representing the object given in the parameter.
|
java.lang.String |
origin()
The origin read-only property of the URL interface returns a USVString containing the Unicode serialization of the origin of the represented URL.
|
static void |
revokeObjectURL(java.lang.String url)
The URL.revokeObjectURL() static method releases an existing object URL which was previously created by calling URL.createObjectURL().
|
URLSearchParams |
searchParams()
The searchParams readonly property of the URL interface returns a URLSearchParams object allowing access to the GET decoded query arguments contained in the URL.
|
java.lang.String |
toJSON()
The toJSON() method of the URL interface returns a USVString containing a serialized version of the URL, although in practice it seems to have the same effect as URL.toString().
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, values@Nonnull public java.lang.String hash
@Nonnull public java.lang.String host
@Nonnull public java.lang.String hostname
@Nonnull public java.lang.String href
@Nonnull public java.lang.String password
@Nonnull public java.lang.String pathname
@Nonnull public java.lang.String port
@Nonnull public java.lang.String protocol
@Nonnull public java.lang.String search
@Nonnull public java.lang.String username
public URL(@Nonnull
java.lang.String url,
@Nonnull
java.lang.String base)
public URL(@Nonnull
java.lang.String url)
@JsProperty(name="origin") @Nonnull public java.lang.String origin()
@JsProperty(name="searchParams") @Nonnull public URLSearchParams searchParams()
@Nonnull public java.lang.String toJSON()
public static void revokeObjectURL(@Nonnull
java.lang.String url)
@Nonnull
public static java.lang.String createObjectURL(@Nonnull
Blob blob)
@Nonnull
public static java.lang.String createObjectURL(@Nonnull
MediaSource mediaSource)