- URI 統一資源標識符 [scheme:]scheme-specific-part[#fragment]
分爲透明URI或者層次化URI
- 透明URI是絕對URI 它的scheme-specific-part 不是開始於’/’,不透明的URI不需要進一步的解析。如下
mailto:[email protected]
news:comp.lang.java
urn:isbn:096139210x
- 層次化的URI可以是絕對URI(scheme-specific-part 以’/'開始)或者是相對URI即沒有scheme 。如下
http://java.sun.com/j2se/1.3/
docs/guide/collections/designfaq.html#28
../../../demo/jfc/SwingSet2/src/SwingSet2.java
file:///~/calendar
- 層次化的URI需要根據語法[scheme:][//authority][path][?query][#fragment]進一步的解析
The authority component of a hierarchical URI is, if specified, either server-based or registry-based. A server-based authority parses according to the familiar syntax
[user-info@]host[:port]