Represents the current URL.
Methods
Name |
Type |
Description |
---|---|---|
|
String |
The host name of the current URL. |
|
String |
The path part of the current URL, or an empty string if one does not exist |
|
int |
The port number or |
|
String |
The protocol of the current URL. |
|
String |
The query part of the current URL, or null if the URL has no query part. |