public interface ProxyProvider
Modifier and Type | Field and Description |
---|---|
static ProxyProvider |
EMPTY_PROXY_PROVIDER |
Modifier and Type | Method and Description |
---|---|
void |
add(@NotNull org.apache.http.HttpHost proxy)
Add a proxy to the list
|
void |
addAll(@NotNull Collection<org.apache.http.HttpHost> proxies)
Add a list of proxies to the list
|
org.apache.http.HttpHost |
get(@NotNull Request request)
Returns the get proxy from the list
|
@NotNull List<org.apache.http.HttpHost> |
getProxyList()
Returns a list of all proxies
|
void |
remove(@NotNull org.apache.http.HttpHost proxy)
Remove a proxy from the list
|
static final ProxyProvider EMPTY_PROXY_PROVIDER
@NotNull @NotNull List<org.apache.http.HttpHost> getProxyList()
void add(@NotNull @NotNull org.apache.http.HttpHost proxy)
proxy
- the proxy to be addedvoid addAll(@NotNull @NotNull Collection<org.apache.http.HttpHost> proxies)
proxies
- the list of proxies to be addedvoid remove(@NotNull @NotNull org.apache.http.HttpHost proxy)
proxy
- the proxy to be removedCopyright © 2018. All rights reserved.