Package dev.dsf.bpe.v2.config
Interface ProxyConfig
public interface ProxyConfig
-
Method Summary
Modifier and TypeMethodDescriptionchar[]getUrl()booleanbooleanbooleanisNoProxyUrl(String url) Returnstrueif the given url is notnulland the domain + port of the given url is configured as a no-proxy URL based on the environment configuration.
-
Method Details
-
getUrl
String getUrl()- Returns:
- may be
null
-
isEnabled
boolean isEnabled()- Returns:
trueif a proxy url is configured and '*' is not set as a no-proxy url
-
isEnabled
- Parameters:
targetUrl- may benull- Returns:
trueif a proxy url is configured, '*' is not set as a no-proxy url and the given targetUrl is not set as a no-proxy url,falseif the given targetUrl isnull, blank or configured as a no-proxy url- See Also:
-
getUsername
String getUsername()- Returns:
- may be
null
-
getPassword
char[] getPassword()- Returns:
- may be
null
-
getNoProxyUrls
- Returns:
- never
null, may be empty
-
isNoProxyUrl
Returnstrueif the given url is notnulland the domain + port of the given url is configured as a no-proxy URL based on the environment configuration.Configured no-proxy URLs are matched exactly and against sub-domains. If a port is configured, only URLs with the same port (or default port) return a
trueresult.No-Proxy URL examples Configured Given Result foo.bar, test.com:8080 https://foo.bar/fhir true foo.bar, test.com:8080 https://baz.foo.bar/test true foo.bar, test.com:8080 https://test.com:8080/fhir true foo.bar, test.com:8080 https://test.com/fhir false foo.bar:443 https://foo.bar/fhir true - Parameters:
url- may benull- Returns:
- true if the given url is not
nulland is configured as a no-proxy url
-