Class ProxyMappings.ProxyMapping
- java.lang.Object
- 
- org.keycloak.connections.httpclient.ProxyMappings.ProxyMapping
 
- 
- Enclosing class:
- ProxyMappings
 
 public static class ProxyMappings.ProxyMapping extends Object ProxyMappings.ProxyMappingdescribes a Proxy Mapping with a HostnamePatternthat is mapped to a proxyHttpHost.
- 
- 
Constructor SummaryConstructors Constructor Description ProxyMapping(Pattern hostnamePattern, org.apache.http.HttpHost proxyHost, org.apache.http.auth.UsernamePasswordCredentials proxyCredentials)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PatterngetHostnamePattern()org.apache.http.auth.UsernamePasswordCredentialsgetProxyCredentials()org.apache.http.HttpHostgetProxyHost()booleanmatches(String hostname)StringtoString()static ProxyMappings.ProxyMappingvalueOf(String mapping)Parses a mapping string into anProxyMappings.ProxyMapping.
 
- 
- 
- 
Field Detail- 
NO_PROXYpublic static final String NO_PROXY - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
ProxyMappingpublic ProxyMapping(Pattern hostnamePattern, org.apache.http.HttpHost proxyHost, org.apache.http.auth.UsernamePasswordCredentials proxyCredentials) 
 
- 
 - 
Method Detail- 
getHostnamePatternpublic Pattern getHostnamePattern() 
 - 
getProxyHostpublic org.apache.http.HttpHost getProxyHost() 
 - 
getProxyCredentialspublic org.apache.http.auth.UsernamePasswordCredentials getProxyCredentials() 
 - 
matchespublic boolean matches(String hostname) 
 - 
valueOfpublic static ProxyMappings.ProxyMapping valueOf(String mapping) Parses a mapping string into anProxyMappings.ProxyMapping.A proxy mapping string must have the following format: hostnameRegex;www-proxy-uriwith semicolon as a delimiter.If no proxy should be used for a host pattern then use NO_PROXYas www-proxy-uri.Examples: .*\.(google\.com|googleapis\.com);http://www-proxy.acme.corp.com:8080 .*\.acme\.corp\.com;NO_PROXY .*;http://fallback:8080- Parameters:
- mapping-
- Returns:
 
 
- 
 
-