# HG changeset patch # User khazra # Date 1359143530 28800 # Node ID b8bcafe8f8112051ab10368bbffa08400774dc80 # Parent ac3e9cfecb0fc1b94c60678ae438e4b63bd3e095 7017962: Obsolete link is used in URL class level spec Summary: Change the link to an archived document Reviewed-by: chegar, mduigou diff -r ac3e9cfecb0f -r b8bcafe8f811 src/share/classes/java/net/URL.java --- a/src/share/classes/java/net/URL.java Fri Oct 03 16:52:05 2014 +0100 +++ b/src/share/classes/java/net/URL.java Fri Jan 25 11:52:10 2013 -0800 @@ -41,17 +41,21 @@ * directory, or it can be a reference to a more complicated object, * such as a query to a database or to a search engine. More * information on the types of URLs and their formats can be found at: - *
- * - * http://www.socs.uts.edu.au/MosaicDocs-old/url-primer.html - *
+ * + * Types of URL *

- * In general, a URL can be broken into several parts. The previous - * example of a URL indicates that the protocol to use is + * In general, a URL can be broken into several parts. Consider the + * following example: + *

+ *     http://www.example.com/docs/resource1.html
+ * 
+ *

+ * The URL above indicates that the protocol to use is * http (HyperText Transfer Protocol) and that the * information resides on a host machine named - * www.socs.uts.edu.au. The information on that host - * machine is named /MosaicDocs-old/url-primer.html. The exact + * www.example.com. The information on that host + * machine is named /docs/resource1.html. The exact * meaning of this name on the host machine is both protocol * dependent and host dependent. The information normally resides in * a file, but it could be generated on the fly. This component of @@ -64,7 +68,7 @@ * http is 80. An alternative port could be * specified as: *

- *     http://www.socs.uts.edu.au:80/MosaicDocs-old/url-primer.html
+ *     http://www.example.com:1080/docs/resource1.html
  * 
*

* The syntax of URL is defined by