URI 我懂了嗎

  • 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]

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章