Gets the userinfo, host and port parts as a string.
Gets the userinfo, host and port parts as a string. Note that either userinfo and/or port may be absent. E.g. "john@myserver.com:8080" or just "myserver.com".
Gets the corresponding domain.
the hostname or IP address
Gets the host and port parts as a string.
Gets the host and port parts as a string. This doesn't include the userinfo. E.g. "localhost:8080"
the optional TCP port number
the scheme - typically "http" or "https"
Defines a service endpoint, which is typically a webserver accessed via HTTP. This is equivalent to a URL without any path, fragment or query string.
the scheme - typically "http" or "https"
the hostname or IP address
the optional TCP port number