URIs, URLs, and URNs

AI权益加码!Claude Code、Cursor等20+工具免费用! 购周边限时加赠Coding Plan Lite,畅享主流AI工具!学习进阶更高效! 阅读详情
URIs, URLs, and URNs
A URI is a uniform resource identifier while a URL is a uniform resource locator. Hence every URL is a URI, abstractly speaking, but not every URI is a URL. This is because there is another subcategory of URIs, uniform resource names (URNs), which name resources but do not specify how to locate them. The mailto, news, and isbn URIs shown above are examples of URNs.

The conceptual distinction between URIs and URLs is reflected in the differences between this class and the URL class.

An instance of this class represents a URI reference in the syntactic sense defined by RFC 2396. A URI may be either absolute or relative. A URI string is parsed according to the generic syntax without regard to the scheme, if any, that it specifies. No lookup of the host, if any, is performed, and no scheme-dependent stream handler is constructed. Equality, hashing, and comparison are defined strictly in terms of the character content of the instance. In other words, a URI instance is little more than a structured string that supports the syntactic, scheme-independent operations of comparison, normalization, resolution, and relativization.

An instance of the URL class, by contrast, represents the syntactic components of a URL together with some of the information required to access the resource that it describes. A URL must be absolute, that is, it must always specify a scheme. A URL string is parsed according to its scheme. A stream handler is always established for a URL, and in fact it is impossible to create a URL instance for a scheme for which no handler is available. Equality and hashing depend upon both the scheme and the Internet address of the host, if any; comparison is not defined. In other words, a URL is a structured string that supports the syntactic operation of resolution as well as the network I/O operations of looking up the host and opening a connection to the specified resource.

3、WebSphere 之 HTTP 服务器与安全站点搭建全解析 本文深入解析了WebSphere环境下HTTP服务器的工作原理与安全站点的搭建方法。内容涵盖HTTP协议基础、URI/URL/URN概念、HTTP事务与消息结构、请求与响应机制、消息实体处理,以及IBM HTTP Server(IHS)的配置参数调优。重点介绍了通过SSL实现安全通信的步骤,包括密钥对生成、httpd.conf配置修改和服务器重启验证。帮助读者全面掌握Web服务器作为应用网关的核心作用及其在企业级架构中的关键地位。 阅读详情

相关推荐

8、网络与Web基础概念解析

本文详细解析了网络与Web的基础概念,包括W3C和IETF这两个重要的标准制定组织的对比,W3C的标准级别及其滥用问题。同时,深入介绍了Web的核心概念如HTTP协议、HTML和URL,并探讨了URI、URN的定义、特点及与URL的区别。这些内容为网络和Web开发提供了理论基础和实践指导。

juice的博客 57

URIs, URLs, and URNs 三者区别

URIs, URLs, and URNs 首先,URI,是uniform resource identifier,统一资源标识符,用来唯一的标识一个资源。而URL是uniform resource locator,统一资源定位器,它是一种具体的URI,即URL可以用来标识一个资源,而且还指明了如何locate这个资源。而URN,uniform resource name,统一资源命名,是通过名字

夜空中最亮的星_SYC的博客 1054

URIs, URLs, and URNs区别

计划任务 完成任务 检查计划完成 URIs, URLs, and URNs区别: 名称 英文 作用区别 URI uniform resource identifier 统一资源标识符,用来唯一的标识一个资源。 URL uniform resource locator 统一资源定位器,它是一种具体的URI,即URL可以用来标识一个资源,而且还指明了如何locate这个资源。 URN uniform resource name 统一资源命名,是通过名字来标识资源,比如mailt..

weixin_45612540的博客 521

10.URIs, URLs, and URNs

URIs, URLs, and URNs     URI 统一资源标识符,用来唯一的标识一个资源,(抽象的、高层次概念定义的统一资源标识)     URL 统一资源定位符,是一种具体的URI,可以用来标识一个资源而且还指明了如何定位(locator)这个资源。(具体的资源标识的方式,是URI的一种,用于绝对路径)     URN 统一资源命名,通过名字来标识资源(具体的资源标识的方式,是UR

qq_36430299的博客 279

URIs come in two flavors, called URLs and URNs

URIs Each web server resource has a name, so clients can point out what resources they are interested in. The server resource name is called a uniform resource identifier, or URI. URI...

weixin_34236497的博客 118

IRIs, URIs and URLs

<br /><br />转自:http://jero.net/articles/iris-uris-urls<br /> <br />You've probably heard about them before (or at least the last two):Internationalized Resource Identifier (IRI)Uniform Resource Identifier (URI)Uniform Resource Locator (URL)<br />There's al

syfly007的专栏 844

2-URLs and Resources

Please indicate the source: http://blog.csdn.net/gaoxiangnumber1Welcome to my github: https://github.com/gaoxiangnumber12.1 Navigating the Internet’s Resources URIs are comprised of two main subsets, U

gaoxiangnumber1——Gao Xiang's Blog 952

c5 URLs and URIs - The URI Class

URI是URL的一般化,

dtnqy的专栏 826

Chapter 2. URLs and Resources 2.1 Navigating the Internet's Resources

Chapter 2. URLs and Resources 2.1 Navigating the Internet's Resources 2.1 Navigating the Internet's Resources URLs are the resource ...

aflwi06660的专栏 152
上一篇: netty中的session属性设置和链接事件捕获
下一篇: 确实进程内部运行线程情况
caobai
博客等级 码龄18年 7粉丝 9原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值