public class ProxyConfig extends Object
Derived from eirslett/frontend-maven-plugin
For internal use only. May be renamed or removed in a future release.
Modifier and Type | Class and Description |
---|---|
static class |
ProxyConfig.Proxy
Class for holding proxy information.
|
Constructor and Description |
---|
ProxyConfig(List<ProxyConfig.Proxy> proxies)
Create a new proxy configuration with given proxies.
|
Modifier and Type | Method and Description |
---|---|
ProxyConfig.Proxy |
getInsecureProxy()
Get first proxy that is not secure.
|
ProxyConfig.Proxy |
getProxyForUrl(String requestUrl)
Get a proxy for url.
|
ProxyConfig.Proxy |
getSecureProxy()
Get a defined secure proxy.
|
boolean |
isEmpty()
Check if no proxies have been defined.
|
public ProxyConfig(List<ProxyConfig.Proxy> proxies)
proxies
- list of available proxiespublic boolean isEmpty()
public ProxyConfig.Proxy getProxyForUrl(String requestUrl)
requestUrl
- url to get proxy forpublic ProxyConfig.Proxy getSecureProxy()
public ProxyConfig.Proxy getInsecureProxy()
Copyright © 2023. All rights reserved.