This trait has two subclasses; AbsolutePath
and EmptyPath
.
An AbsolutePath is a path that starts with a slash
Represents absolute URLs, for example: http://example.com
Represents absolute URLs, for example: //example.com
Represents Relative URLs which do not contain an authority.
Represents Relative URLs which do not contain an authority. Examples include:
/index.html?a=b
index.html?a=b
../index.html?a=b
Represents a URI.
Represents a URI. See RFC 3986
Can either be a URL or a URN
URLs will be one of these forms:
http://example.com
//example.com
mailto:[email protected]
/index.html?a=b
index.html?a=b
../index.html?a=b
URNs will be in the form urn:example:example2
Represents a URL, which will be one of these forms:
Represents a URL, which will be one of these forms:
http://example.com
//example.com
mailto:[email protected]
/index.html?a=b
index.html?a=b
../index.html?a=b
Represents absolute URLs with an authority (i.e.
Represents absolute URLs with an authority (i.e. URLs with a host), examples include:
http://example.com
//example.com
Represents URLs that do not have an authority, for example: mailto:[email protected]
Represents a URN.
Date: 28/08/2013 Time: 21:08
This trait has two subclasses;
AbsolutePath
andEmptyPath
. This encompasses the paths allowed to be used in URLs that have an Authority. As per RFC 3986:When authority is present, the path must either be empty or begin with a slash ("/") character.