Class DefaultHttpClientFactory
java.lang.Object
org.keycloak.connections.httpclient.DefaultHttpClientFactory
- All Implemented Interfaces:
HttpClientFactory,ProviderFactory<HttpClientProvider>
The default
HttpClientFactory for HttpClientProvider's used by Keycloak for outbound HTTP calls.
Example for Quarkus configuration:
spi-connections-http-client-default-connection-pool-size=10
- Author:
- Stian Thorgersen
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()create(KeycloakSession session) getId()voidinit(Config.Scope config) protected HttpClientBuildervoidpostInit(KeycloakSessionFactory factory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, order
-
Field Details
-
MAX_CONSUMED_RESPONSE_SIZE
- See Also:
-
-
Constructor Details
-
DefaultHttpClientFactory
public DefaultHttpClientFactory()
-
-
Method Details
-
create
- Specified by:
createin interfaceProviderFactory<HttpClientProvider>
-
close
public void close()- Specified by:
closein interfaceProviderFactory<HttpClientProvider>
-
getId
- Specified by:
getIdin interfaceProviderFactory<HttpClientProvider>
-
init
- Specified by:
initin interfaceProviderFactory<HttpClientProvider>
-
newHttpClientBuilder
-
postInit
- Specified by:
postInitin interfaceProviderFactory<HttpClientProvider>
-
getConfigMetadata
- Specified by:
getConfigMetadatain interfaceProviderFactory<HttpClientProvider>
-
getConfig
-