接口 SubProtocolURLConnectionFactory
-
public interface SubProtocolURLConnectionFactory
TheURLConnection
factory for the sub protocol- 从以下版本开始:
- 1.0.0
- 作者:
- Mercy
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 java.net.URLConnection
create(java.net.URL url, java.util.List<java.lang.String> subProtocols, java.net.Proxy proxy)
Create the sub-protocols'URLConnection
boolean
supports(java.net.URL url, java.util.List<java.lang.String> subProtocols)
Supports the current factory to create theURLConnection
or not
-
-
-
方法详细资料
-
supports
boolean supports(java.net.URL url, java.util.List<java.lang.String> subProtocols)
Supports the current factory to create theURLConnection
or not- 参数:
url
- the URL that this connects tosubProtocols
- the list of sub-protocols- 返回:
true
if supports,otherwisefalse
-
create
java.net.URLConnection create(java.net.URL url, java.util.List<java.lang.String> subProtocols, java.net.Proxy proxy) throws java.io.IOException
Create the sub-protocols'URLConnection
- 参数:
url
- the URL that this connects tosubProtocols
- the list of sub-protocolsproxy
-Proxy
the proxy through which the connection will be made. If direct connection is desired, Proxy.NO_PROXY should be specified.- 返回:
URLConnection
- 抛出:
java.io.IOException
- If the process is failed
-
-