@@ -61,8 +61,14 @@ private ClientHttpRequestFactories() {
61
61
}
62
62
63
63
/**
64
- * Return a new {@link ClientHttpRequestFactory} instance using the most appropriate
65
- * implementation.
64
+ * Return a {@link ClientHttpRequestFactory} implementation with the given
65
+ * {@code settings} applied. The first of the following implementations whose
66
+ * dependencies {@link ClassUtils#isPresent are available} is returned:
67
+ * <ol>
68
+ * <li>{@link HttpComponentsClientHttpRequestFactory}</li>
69
+ * <li>{@link OkHttp3ClientHttpRequestFactory}</li>
70
+ * <li>{@link SimpleClientHttpRequestFactory}</li>
71
+ * </ol>
66
72
* @param settings the settings to apply
67
73
* @return a new {@link ClientHttpRequestFactory}
68
74
*/
@@ -78,8 +84,17 @@ public static ClientHttpRequestFactory get(ClientHttpRequestFactorySettings sett
78
84
}
79
85
80
86
/**
81
- * Return a new {@link ClientHttpRequestFactory} of the given type, applying
82
- * {@link ClientHttpRequestFactorySettings} using reflection if necessary.
87
+ * Return a new {@link ClientHttpRequestFactory} of the given
88
+ * {@code requestFactoryType}, applying {@link ClientHttpRequestFactorySettings} using
89
+ * reflection if necessary. The following implementations are supported without the
90
+ * use of reflection:
91
+ * <ul>
92
+ * <li>{@link HttpComponentsClientHttpRequestFactory}</li>
93
+ * <li>{@link OkHttp3ClientHttpRequestFactory}</li>
94
+ * <li>{@link SimpleClientHttpRequestFactory}</li>
95
+ * </ul>
96
+ * A {@code requestFactoryType} of {@link ClientHttpRequestFactory} is equivalent to
97
+ * calling {@link #get(ClientHttpRequestFactorySettings)}.
83
98
* @param <T> the {@link ClientHttpRequestFactory} type
84
99
* @param requestFactoryType the {@link ClientHttpRequestFactory} type
85
100
* @param settings the settings to apply
0 commit comments