软件包 | 描述 |
---|---|
java.net |
为实现网络应用程序提供类。
|
javax.net.ssl |
为安全套接字包提供类。
|
Modifier and Type | Class and Description |
---|---|
class |
HttpURLConnection
一个HTTP特定的功能支持URLConnection。
|
class |
JarURLConnection
一个URL连接到一个java文件(JAR)JAR文件中的文件或项目。
|
Modifier and Type | Field and Description |
---|---|
protected URLConnection |
JarURLConnection.jarFileURLConnection
连接到罐子文件的网址,如果连接已经启动。
|
Modifier and Type | Method and Description |
---|---|
URLConnection |
URL.openConnection()
返回一个
URLConnection 实例表示的远程对象的连接被称为
URL 。
|
URLConnection |
URL.openConnection(Proxy proxy)
同
URL.openConnection() ,除了连接将通过指定的代理进行;协议处理程序不支持proxing将忽略代理参数,使正常的连接。
|
protected abstract URLConnection |
URLStreamHandler.openConnection(URL u)
打开一个连接的
URL 参数引用的对象。
|
protected URLConnection |
URLStreamHandler.openConnection(URL u, Proxy p)
同OpenConnection(URL),除了连接将通过指定的代理进行;协议处理程序不支持代理将忽略代理参数,使正常的连接。
|
Modifier and Type | Method and Description |
---|---|
abstract Object |
ContentHandler.getContent(URLConnection urlc)
给定一个位于对象表示的开头的一个网址连接流,该方法读取该流,并从它创建一个对象。
|
Object |
ContentHandler.getContent(URLConnection urlc, 类[] classes)
给定一个位于对象表示的开头的一个网址连接流,该方法读取该流,并创建一个与指定的类型的一个匹配的对象。
|
abstract CacheRequest |
ResponseCache.put(URI uri, URLConnection conn)
协议处理程序调用此方法后,资源已被检索,和responsecache必须决定是否存储在缓存中的资源。
|
Modifier and Type | Class and Description |
---|---|
class |
HttpsURLConnection
HttpsURLConnection 延伸
HttpURLConnection 与特定功能支持HTTPS。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.