提交 6f199eeb 编写于 作者: A alanb

8000941: Remove ftp from the required list of protocol handlers

Reviewed-by: chegar
上级 bb15c17f
...@@ -127,7 +127,6 @@ public abstract class ProxySelector { ...@@ -127,7 +127,6 @@ public abstract class ProxySelector {
* <UL> * <UL>
* <LI>http URI for http connections</LI> * <LI>http URI for http connections</LI>
* <LI>https URI for https connections * <LI>https URI for https connections
* <LI>ftp URI for ftp connections</LI>
* <LI><code>socket://host:port</code><br> * <LI><code>socket://host:port</code><br>
* for tcp client sockets connections</LI> * for tcp client sockets connections</LI>
* </UL> * </UL>
......
...@@ -274,7 +274,7 @@ public final class URL implements java.io.Serializable { ...@@ -274,7 +274,7 @@ public final class URL implements java.io.Serializable {
* <p>Protocol handlers for the following protocols are guaranteed * <p>Protocol handlers for the following protocols are guaranteed
* to exist on the search path :- * to exist on the search path :-
* <blockquote><pre> * <blockquote><pre>
* http, https, ftp, file, and jar * http, https, file, and jar
* </pre></blockquote> * </pre></blockquote>
* Protocol handlers for additional protocols may also be * Protocol handlers for additional protocols may also be
* available. * available.
......
...@@ -37,8 +37,7 @@ import sun.net.www.ParseUtil; ...@@ -37,8 +37,7 @@ import sun.net.www.ParseUtil;
* The abstract class <code>URLStreamHandler</code> is the common * The abstract class <code>URLStreamHandler</code> is the common
* superclass for all stream protocol handlers. A stream protocol * superclass for all stream protocol handlers. A stream protocol
* handler knows how to make a connection for a particular protocol * handler knows how to make a connection for a particular protocol
* type, such as <code>http</code>, <code>ftp</code>, or * type, such as <code>http</code> or <code>https</code>.
* <code>gopher</code>.
* <p> * <p>
* In most cases, an instance of a <code>URLStreamHandler</code> * In most cases, an instance of a <code>URLStreamHandler</code>
* subclass is not created directly by an application. Rather, the * subclass is not created directly by an application. Rather, the
......
...@@ -72,7 +72,7 @@ Provides the classes for implementing networking applications. ...@@ -72,7 +72,7 @@ Provides the classes for implementing networking applications.
<ul> <ul>
<li>{@link java.net.URI} is the class representing a Universal Resource Identifier, as specified in RFC 2396. As the name indicates, this is just an Identifier and doesn't provide directly the means to access the resource.</li> <li>{@link java.net.URI} is the class representing a Universal Resource Identifier, as specified in RFC 2396. As the name indicates, this is just an Identifier and doesn't provide directly the means to access the resource.</li>
<li>{@link java.net.URL} is the class representing a Universal Resource Locator, which is both an older concept for URIs and a means to access the resources.</li> <li>{@link java.net.URL} is the class representing a Universal Resource Locator, which is both an older concept for URIs and a means to access the resources.</li>
<li>{@link java.net.URLConnection} is created from a URL and is the communication link used to access the resource pointed by the URL. This abstract class will delegate most of the work to the underlying protocol handlers like http or ftp.</li> <li>{@link java.net.URLConnection} is created from a URL and is the communication link used to access the resource pointed by the URL. This abstract class will delegate most of the work to the underlying protocol handlers like http or https.</li>
<li>{@link java.net.HttpURLConnection} is a subclass of URLConnection and provides some additional functionalities specific to the HTTP protocol.</li> <li>{@link java.net.HttpURLConnection} is a subclass of URLConnection and provides some additional functionalities specific to the HTTP protocol.</li>
</ul> </ul>
<p>The recommended usage is to use {@link java.net.URI} to identify resources, then convert it into a {@link java.net.URL} when it is time to access the resource. From that URL, you can either get the {@link java.net.URLConnection} for fine control, or get directly the InputStream.<p> <p>The recommended usage is to use {@link java.net.URI} to identify resources, then convert it into a {@link java.net.URL} when it is time to access the resource. From that URL, you can either get the {@link java.net.URLConnection} for fine control, or get directly the InputStream.<p>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册