Code example for Proxy

Methods: type

0
        assertTrue(proxy5.hashCode() != proxy6.hashCode());
    } 
 
    public void test_type() { 
 
        Proxy proxy = new Proxy(Proxy.Type.HTTP, address);
        assertEquals(Proxy.Type.HTTP, proxy.type());
 
        proxy = new Proxy(Proxy.Type.SOCKS, address);
        assertEquals(Proxy.Type.SOCKS, proxy.type());
 
        proxy = Proxy.NO_PROXY;
        assertEquals(Proxy.Type.DIRECT, proxy.type());
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java