接口 SubProtocolURLConnectionFactory

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      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 the URLConnection or not
    • 方法详细资料

      • supports

        boolean supports​(java.net.URL url,
                         java.util.List<java.lang.String> subProtocols)
        Supports the current factory to create the URLConnection or not

        参数:
        url - the URL that this connects to
        subProtocols - the list of sub-protocols
        返回:
        true if supports,otherwise false
      • 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 to
        subProtocols - the list of sub-protocols
        proxy - 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