Class DefaultHttpClientFactory

  • All Implemented Interfaces:
    HttpClientFactory, ProviderFactory<HttpClientProvider>

    public class DefaultHttpClientFactory
    extends Object
    implements HttpClientFactory
    The default HttpClientFactory for HttpClientProvider's used by Keycloak for outbound HTTP calls.

    The constructed clients can be configured via Keycloaks SPI configuration, e.g. standalone.xml, standalone-ha.xml, domain.xml.

    Examples for jboss-cli

     
    
     /subsystem=keycloak-server/spi=connectionsHttpClient/provider=default:add(enabled=true)
     /subsystem=keycloak-server/spi=connectionsHttpClient/provider=default:write-attribute(name=properties.connection-pool-size,value=128)
     /subsystem=keycloak-server/spi=connectionsHttpClient/provider=default:write-attribute(name=properties.proxy-mappings,value=[".*\\.(google|googleapis)\\.com;http://www-proxy.acme.corp.com:8080",".*\\.acme\\.corp\\.com;NO_PROXY",".*;http://fallback:8080"])
     
     

    Author:
    Stian Thorgersen