Class HttpClientBuilderLoader
java.lang.Object
dev.langchain4j.http.client.HttpClientBuilderLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpClientBuilderCreates anHttpClientBuilderwith one of thefactorieson the classpath.
-
Constructor Details
-
HttpClientBuilderLoader
public HttpClientBuilderLoader()
-
-
Method Details
-
loadHttpClientBuilder
Creates anHttpClientBuilderwith one of thefactorieson the classpath. The factory named by thelangchain4j.http.clientBuilderFactorysystem property is used when that property is set. Otherwise, the factory with the highestpriorityis used.- Returns:
- a new builder
- Throws:
IllegalStateException- if there is no factory on the classpath, if the system property names a factory that is not on the classpath, or if several factories share the highest priority
-