public class ProxyList extends Object
Modifier and Type | Method and Description |
---|---|
void |
addProxy(String address,
int port)
Add a proxy.
|
void |
addProxy(String address,
int port,
Proxy.Type proxyType)
Add a proxy.
|
static ProxyList |
getInstance()
Returns an instance of proxylist.
|
Proxy |
getProxy()
Returns the next proxy.
|
public static ProxyList instance
public Proxy getProxy()
public void addProxy(String address, int port)
address
- the proxy address.port
- the proxy port.public void addProxy(String address, int port, Proxy.Type proxyType)
address
- the proxy address.port
- the proxy port.proxyType
- the type of the proxy.public static ProxyList getInstance()
Copyright © 2013. All rights reserved.