软件包 | 描述 |
---|---|
java.net |
为实现网络应用程序提供类。
|
Modifier and Type | Field and Description |
---|---|
static Proxy |
Proxy.NO_PROXY
代理设置,代表一个
DIRECT 连接,基本上告诉协议处理程序不使用任何代理。
|
Modifier and Type | Method and Description |
---|---|
abstract List<Proxy> |
ProxySelector.select(URI uri)
选择基于该协议访问资源的所有适用的代理和一个目的地地址来访问资源。
|
Modifier and Type | Method and Description |
---|---|
URLConnection |
URL.openConnection(Proxy proxy)
同
URL.openConnection() ,除了连接将通过指定的代理进行;协议处理程序不支持proxing将忽略代理参数,使正常的连接。
|
protected URLConnection |
URLStreamHandler.openConnection(URL u, Proxy p)
同OpenConnection(URL),除了连接将通过指定的代理进行;协议处理程序不支持代理将忽略代理参数,使正常的连接。
|
Constructor and Description |
---|
Socket(Proxy proxy)
创建一个连接的套接字类型,指定代理,如果有,应该使用无论任何其他设置。
|
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.