From 3e5a0c70ab984e32590b76c7dfd3f4d2ae16afc2 Mon Sep 17 00:00:00 2001 From: Kurchi Subhra Hazra Date: Fri, 25 Jan 2013 11:52:10 -0800 Subject: [PATCH] 7017962: Obsolete link is used in URL class level spec Change the link to an archived document Reviewed-by: chegar, mduigou --- jdk/src/share/classes/java/net/URL.java | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/jdk/src/share/classes/java/net/URL.java b/jdk/src/share/classes/java/net/URL.java index a17fa946aa4..62271037126 100644 --- a/jdk/src/share/classes/java/net/URL.java +++ b/jdk/src/share/classes/java/net/URL.java @@ -38,17 +38,21 @@ import sun.security.util.SecurityConstants; * 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 @@ -61,7 +65,7 @@ import sun.security.util.SecurityConstants; * 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