Java network programming URI, URL research (on)

xiaoxiao2021-03-06  111

URI, URL, and URN are standard ways to identify, locate, and naming resources on the Internet. This paper analyzes the URI, URL, and Java API's URI and URL classes (and classes related to URL) and demonstrate how to use them in the program.

In 1989, Tim Berners-Lee invented the Internet (WORLD WIDE Web). WWW is considered to be a collection of actual and abstract resources globally - it provides an information entity based on demand - Access to Internet. The scope of the actual resource is from the file to people, and abstract resources include database queries. Because you want to identify resources through a variety of ways (the person's name may be the same, the computer file can only be combined by unique path name), so it is necessary to identify WWW resources to the WWW resource. In order to meet this needs, Tim Berners-Lee introduces standard identification, positioning, and naming paths: URI, URL, and URN.