Class ProxyConfig.Proxy
java.lang.Object
io.jmix.flowui.devserver.frontend.installer.ProxyConfig.Proxy
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ProxyConfig
Class for holding proxy information.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetUri()
Get the proxy uri.boolean
isNonProxyHost
(String host) Check if given host is excluded for proxy.boolean
isSecure()
Check if the proxy is secure.toString()
boolean
Check if proxy uses authentication.
-
Field Details
-
id
Id of proxy. -
protocol
Protocol used for proxy. -
host
Proxy host. -
port
public final int portProxy port. -
username
User name for proxy. -
password
Password for proxy. -
nonProxyHosts
Excluded hosts string delimited by '|'.
-
-
Constructor Details
-
Proxy
public Proxy(String id, String protocol, String host, int port, String username, String password, String nonProxyHosts) Construct a Proxy object.- Parameters:
id
- proxy idprotocol
- proxy protocolhost
- proxy hostport
- proxy portusername
- user name for proxypassword
- password for proxynonProxyHosts
- excluded hosts string delimited by '|'
-
Proxy
Construct a Proxy object out of a proxy url.- Parameters:
id
- proxy idproxyUrl
- proxy url with the format of protocol://user:password@server:portnonProxyHosts
- excluded hosts string delimited by '|'
-
-
Method Details
-
useAuthentication
public boolean useAuthentication()Check if proxy uses authentication.- Returns:
- true if we have a non empty username
-
getUri
Get the proxy uri.- Returns:
- URI for this proxy
-
isSecure
public boolean isSecure()Check if the proxy is secure.- Returns:
- true is protocol is https
-
isNonProxyHost
Check if given host is excluded for proxy.- Parameters:
host
- host to check- Returns:
- true if host matches a nonProxyHosts pattern
-
toString
-