test_class.declarator: HTTP_PROXY_HOST = "http.proxyHost"
test_class.modifier: private static final
test_class.original_string: private static final String HTTP_PROXY_HOST = "http.proxyHost";
test_class.type: String
test_class.var_name: HTTP_PROXY_HOST
test_class.declarator: HTTP_PROXY_PORT = "http.proxyPort"
test_class.modifier: private static final
test_class.original_string: private static final String HTTP_PROXY_PORT = "http.proxyPort";
test_class.type: String
test_class.var_name: HTTP_PROXY_PORT
test_class.declarator: HTTPS_PROXY_HOST = "https.proxyHost"
test_class.modifier: private static final
test_class.original_string: private static final String HTTPS_PROXY_HOST = "https.proxyHost";
test_class.type: String
test_class.var_name: HTTPS_PROXY_HOST
test_class.declarator: HTTPS_PROXY_PORT = "https.proxyPort"
test_class.modifier: private static final
test_class.original_string: private static final String HTTPS_PROXY_PORT = "https.proxyPort";
test_class.type: String
test_class.var_name: HTTPS_PROXY_PORT
test_class.declarator: FTP_PROXY_HOST = "ftp.proxyHost"
test_class.modifier: private static final
test_class.original_string: private static final String FTP_PROXY_HOST = "ftp.proxyHost";
test_class.type: String
test_class.var_name: FTP_PROXY_HOST
test_class.declarator: FTP_PROXY_PORT = "ftp.proxyPort"
test_class.modifier: private static final
test_class.original_string: private static final String FTP_PROXY_PORT = "ftp.proxyPort";
test_class.type: String
test_class.var_name: FTP_PROXY_PORT
test_class.declarator: SOCKS_PROXY_HOST = "socksProxyHost"
test_class.modifier: private static final
test_class.original_string: private static final String SOCKS_PROXY_HOST = "socksProxyHost";
test_class.type: String
test_class.var_name: SOCKS_PROXY_HOST
test_class.declarator: SOCKS_PROXY_PORT = "socksProxyPort"
test_class.modifier: private static final
test_class.original_string: private static final String SOCKS_PROXY_PORT = "socksProxyPort";
test_class.type: String
test_class.var_name: SOCKS_PROXY_PORT
test_class.declarator: LOCALHOST = "127.0.0.1"
test_class.modifier: private static final
test_class.original_string: private static final String LOCALHOST = "127.0.0.1";
test_class.type: String
test_class.var_name: LOCALHOST
test_class.declarator: TEST_PORT_NUM = 8888
test_class.modifier: private static final
test_class.original_string: private static final int TEST_PORT_NUM = 8888;
test_class.type: int
test_class.var_name: TEST_PORT_NUM
test_class.declarator: TEST_PORT_STR = String.valueOf(TEST_PORT_NUM)
test_class.modifier: private static final
test_class.original_string: private static final String TEST_PORT_STR = String.valueOf(TEST_PORT_NUM);
test_class.type: String
test_class.var_name: TEST_PORT_STR
test_class.declarator: testHttpUri
test_class.modifier: private static
test_class.original_string: private static URI testHttpUri;
test_class.type: URI
test_class.var_name: testHttpUri
test_class.declarator: testHttpsUri
test_class.modifier: private static
test_class.original_string: private static URI testHttpsUri;
test_class.type: URI
test_class.var_name: testHttpsUri
test_class.declarator: testFtpUri
test_class.modifier: private static
test_class.original_string: private static URI testFtpUri;
test_class.type: URI
test_class.var_name: testFtpUri
test_class.declarator: testSocksUri
test_class.modifier: private static
test_class.original_string: private static URI testSocksUri;
test_class.type: URI
test_class.var_name: testSocksUri
test_class.declarator: systemProperties
test_class.modifier: private static
test_class.original_string: private static Properties systemProperties;
test_class.type: Properties
test_class.var_name: systemProperties
test_class.file: aw-reporting/src/test/java/com/google/api/ads/adwords/awreporting/proxy/JaxWsProxySelectorTest.java
test_class.identifier: JaxWsProxySelectorTest
test_case.body: @Test(expected = IllegalArgumentException.class)
    public void testSelect_IllegalArgumentException() {
      JaxWsProxySelector ps = new JaxWsProxySelector(ProxySelector.getDefault());
      ps.select(null);
    }
test_case.class_method_signature: JaxWsProxySelectorTest.testSelect_IllegalArgumentException()
test_case.full_signature: @Test(expected = IllegalArgumentException.class) public void testSelect_IllegalArgumentException()
test_case.identifier: testSelect_IllegalArgumentException
test_case.invocations: getDefault select
test_case.modifiers: @Test(expected = IllegalArgumentException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSelect_IllegalArgumentException()
focal_class.declarator: PROXY_HOST = "proxyHost"
focal_class.modifier: private static final
focal_class.original_string: private static final String PROXY_HOST = "proxyHost";
focal_class.type: String
focal_class.var_name: PROXY_HOST
focal_class.declarator: PROXY_PORT = "proxyPort"
focal_class.modifier: private static final
focal_class.original_string: private static final String PROXY_PORT = "proxyPort";
focal_class.type: String
focal_class.var_name: PROXY_PORT
focal_class.declarator: PROXY_USER = "proxyUser"
focal_class.modifier: private static final
focal_class.original_string: private static final String PROXY_USER = "proxyUser";
focal_class.type: String
focal_class.var_name: PROXY_USER
focal_class.declarator: PROXY_PASSWORD = "proxyPassword"
focal_class.modifier: private static final
focal_class.original_string: private static final String PROXY_PASSWORD = "proxyPassword";
focal_class.type: String
focal_class.var_name: PROXY_PASSWORD
focal_class.declarator: SOCKS_PROXY_HOST = "socksProxyHost"
focal_class.modifier: private static final
focal_class.original_string: private static final String SOCKS_PROXY_HOST = "socksProxyHost";
focal_class.type: String
focal_class.var_name: SOCKS_PROXY_HOST
focal_class.declarator: SOCKS_PROXY_PORT = "socksProxyPort"
focal_class.modifier: private static final
focal_class.original_string: private static final String SOCKS_PROXY_PORT = "socksProxyPort";
focal_class.type: String
focal_class.var_name: SOCKS_PROXY_PORT
focal_class.declarator: SOCKS_PROXY_USER = "socksProxyHost"
focal_class.modifier: private static final
focal_class.original_string: private static final String SOCKS_PROXY_USER = "socksProxyHost";
focal_class.type: String
focal_class.var_name: SOCKS_PROXY_USER
focal_class.declarator: SOCKS_PROXY_PASSWORD = "socksProxyPassword"
focal_class.modifier: private static final
focal_class.original_string: private static final String SOCKS_PROXY_PASSWORD = "socksProxyPassword";
focal_class.type: String
focal_class.var_name: SOCKS_PROXY_PASSWORD
focal_class.declarator: SUPPORTED_SCHEMES = Sets.newHashSet("http", "https", "ftp")
focal_class.modifier: private static final
focal_class.original_string: private static final Set<String> SUPPORTED_SCHEMES = Sets.newHashSet("http", "https", "ftp");
focal_class.type: Set<String>
focal_class.var_name: SUPPORTED_SCHEMES
focal_class.declarator: delegate
focal_class.modifier: private final
focal_class.original_string: private final ProxySelector delegate;
focal_class.type: ProxySelector
focal_class.var_name: delegate
focal_class.declarator: proxyProperties
focal_class.modifier: private final
focal_class.original_string: private final Properties proxyProperties;
focal_class.type: Properties
focal_class.var_name: proxyProperties
focal_class.file: aw-reporting/src/main/java/com/google/api/ads/adwords/awreporting/proxy/JaxWsProxySelector.java
focal_class.identifier: JaxWsProxySelector
focal_class.class_method_signature: JaxWsProxySelector.JaxWsProxySelector(@Nullable ProxySelector proxySelector, Properties properties)
focal_class.full_signature: public  JaxWsProxySelector(@Nullable ProxySelector proxySelector, Properties properties)
focal_class.identifier: JaxWsProxySelector
focal_class.modifiers: public
focal_class.parameters: (@Nullable ProxySelector proxySelector, Properties properties)
focal_class.signature:  JaxWsProxySelector(@Nullable ProxySelector proxySelector, Properties properties)
focal_class.class_method_signature: JaxWsProxySelector.JaxWsProxySelector(@Nullable ProxySelector proxySelector)
focal_class.full_signature: public  JaxWsProxySelector(@Nullable ProxySelector proxySelector)
focal_class.identifier: JaxWsProxySelector
focal_class.modifiers: public
focal_class.parameters: (@Nullable ProxySelector proxySelector)
focal_class.signature:  JaxWsProxySelector(@Nullable ProxySelector proxySelector)
focal_class.class_method_signature: JaxWsProxySelector.select(URI uri)
focal_class.full_signature: @Override public List<Proxy> select(URI uri)
focal_class.identifier: select
focal_class.modifiers: @Override public
focal_class.parameters: (URI uri)
focal_class.return: List<Proxy>
focal_class.signature: List<Proxy> select(URI uri)
focal_class.class_method_signature: JaxWsProxySelector.getProxy(String scheme, String proxyHost, String proxyPort, String proxyUser)
focal_class.full_signature: private Proxy getProxy(String scheme, String proxyHost, String proxyPort, String proxyUser)
focal_class.identifier: getProxy
focal_class.modifiers: private
focal_class.parameters: (String scheme, String proxyHost, String proxyPort, String proxyUser)
focal_class.return: Proxy
focal_class.signature: Proxy getProxy(String scheme, String proxyHost, String proxyPort, String proxyUser)
focal_class.class_method_signature: JaxWsProxySelector.delegateSelect(URI uri)
focal_class.full_signature: private List<Proxy> delegateSelect(URI uri)
focal_class.identifier: delegateSelect
focal_class.modifiers: private
focal_class.parameters: (URI uri)
focal_class.return: List<Proxy>
focal_class.signature: List<Proxy> delegateSelect(URI uri)
focal_class.class_method_signature: JaxWsProxySelector.connectFailed(URI uri, SocketAddress socketAddress, IOException ioException)
focal_class.full_signature: @Override public void connectFailed(URI uri, SocketAddress socketAddress, IOException ioException)
focal_class.identifier: connectFailed
focal_class.modifiers: @Override public
focal_class.parameters: (URI uri, SocketAddress socketAddress, IOException ioException)
focal_class.return: void
focal_class.signature: void connectFailed(URI uri, SocketAddress socketAddress, IOException ioException)
focal_class.superclass: extends ProxySelector
focal_method.body: @Override
    public List<Proxy> select(URI uri) {
      List<Proxy> list = Lists.newArrayList();
  
      if (uri == null) {
        throw new IllegalArgumentException("URI can't be null.");
      }
  
      String scheme = uri.getScheme().toLowerCase();
      
      if (SUPPORTED_SCHEMES.contains(scheme)){
        Proxy proxy = getProxy(scheme, proxyProperties.getProperty(scheme + "." + PROXY_HOST),
            proxyProperties.getProperty(scheme + "." + PROXY_PORT), 
            proxyProperties.getProperty(scheme + "." + PROXY_USER));
        
        if (proxy != null){
          list.add(proxy);
        }
      }
      
      if (scheme.startsWith("http") || "ftp".equals(scheme) || scheme.startsWith("socks")){
        Proxy proxy = getProxy("socks", proxyProperties.getProperty(SOCKS_PROXY_HOST),
            proxyProperties.getProperty(SOCKS_PROXY_PORT), 
            proxyProperties.getProperty(SOCKS_PROXY_USER));
        
        if (proxy != null){
          list.add(proxy);
        }
      }
  
      if (list.size() > 0) {
        return list;
      }
      return delegateSelect(uri);
    }
focal_method.class_method_signature: JaxWsProxySelector.select(URI uri)
focal_method.full_signature: @Override public List<Proxy> select(URI uri)
focal_method.identifier: select
focal_method.invocations: newArrayList toLowerCase getScheme contains getProxy getProperty getProperty getProperty add startsWith equals startsWith getProxy getProperty getProperty getProperty add size delegateSelect
focal_method.modifiers: @Override public
focal_method.parameters: (URI uri)
focal_method.return: List<Proxy>
focal_method.signature: List<Proxy> select(URI uri)