com.vaadin.flow.server.frontend.installer.
Class ProxyConfig
Proxy configuration used for downloads and executions.
Derived from eirslett/frontend-maven-plugin
For internal use only. May be renamed or removed in a future release.
Since:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Class for holding proxy information.
-
Constructor Summary
ConstructorsConstructorDescriptionProxyConfig
(List<ProxyConfig.Proxy> proxies) Create a new proxy configuration with given proxies.
-
Method Summary
Modifier and TypeMethodDescriptionGet first proxy that is not secure.
getProxyForUrl
(String requestUrl) Get a proxy for url.
Get a defined secure proxy.
boolean
isEmpty()
Check if no proxies have been defined.
-
Constructor Details
-
ProxyConfig
Create a new proxy configuration with given proxies.
Parameters:
proxies
- list of available proxies
-
-
Method Details
-
isEmpty
public boolean isEmpty()Check if no proxies have been defined.
Returns:
true if we have no proxies
-
getProxyForUrl
Get a proxy for url.
Parameters:
requestUrl
- url to get proxy forReturns:
Proxy if one found, else null.
-
getSecureProxy
Get a defined secure proxy.
Returns:
first secure proxy from the proxy list, or null if no secure proxies.
-
getInsecureProxy
Get first proxy that is not secure.
Returns:
first proxy that is not secure from the proxy list, or null if no secure proxies.
-