@Test public void testGetProxyWithNullProxyHost() { DatadogHttpClient client = new DatadogHttpClient("anApiKey", null, 123); assert(client.getProxy() == Proxy.NO_PROXY); }
Proxy getProxy() { if (proxyHost == null) { return Proxy.NO_PROXY; } else { return new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxyHost, proxyPort)); } }
DatadogHttpClient { Proxy getProxy() { if (proxyHost == null) { return Proxy.NO_PROXY; } else { return new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxyHost, proxyPort)); } } }
DatadogHttpClient { Proxy getProxy() { if (proxyHost == null) { return Proxy.NO_PROXY; } else { return new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxyHost, proxyPort)); } } DatadogHttpClient(String dgApiKey, String dgProxyHost, int dgProxyPort); }
DatadogHttpClient { Proxy getProxy() { if (proxyHost == null) { return Proxy.NO_PROXY; } else { return new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxyHost, proxyPort)); } } DatadogHttpClient(String dgApiKey, String dgProxyHost, int dgProxyPort); void send(DatadogHttpReporter.DatadogHttpRequest request); static String serialize(Object obj); void close(); }
DatadogHttpClient { Proxy getProxy() { if (proxyHost == null) { return Proxy.NO_PROXY; } else { return new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxyHost, proxyPort)); } } DatadogHttpClient(String dgApiKey, String dgProxyHost, int dgProxyPort); void send(DatadogHttpReporter.DatadogHttpRequest request); static String serialize(Object obj); void close();  }