@@ -74,8 +74,14 @@ private ClientHttpRequestFactories() {
74
74
}
75
75
76
76
/**
77
- * Return a new {@link ClientHttpRequestFactory} instance using the most appropriate
78
- * implementation.
77
+ * Return a {@link ClientHttpRequestFactory} implementation with the given
78
+ * {@code settings} applied. The first of the following implementations whose
79
+ * dependencies {@link ClassUtils#isPresent are available} is returned:
80
+ * <ol>
81
+ * <li>{@link HttpComponentsClientHttpRequestFactory}</li>
82
+ * <li>{@link OkHttp3ClientHttpRequestFactory}</li>
83
+ * <li>{@link SimpleClientHttpRequestFactory}</li>
84
+ * </ol>
79
85
* @param settings the settings to apply
80
86
* @return a new {@link ClientHttpRequestFactory}
81
87
*/
@@ -91,8 +97,17 @@ public static ClientHttpRequestFactory get(ClientHttpRequestFactorySettings sett
91
97
}
92
98
93
99
/**
94
- * Return a new {@link ClientHttpRequestFactory} of the given type, applying
95
- * {@link ClientHttpRequestFactorySettings} using reflection if necessary.
100
+ * Return a new {@link ClientHttpRequestFactory} of the given
101
+ * {@code requestFactoryType}, applying {@link ClientHttpRequestFactorySettings} using
102
+ * reflection if necessary. The following implementations are supported without the
103
+ * use of reflection:
104
+ * <ul>
105
+ * <li>{@link HttpComponentsClientHttpRequestFactory}</li>
106
+ * <li>{@link OkHttp3ClientHttpRequestFactory}</li>
107
+ * <li>{@link SimpleClientHttpRequestFactory}</li>
108
+ * </ul>
109
+ * A {@code requestFactoryType} of {@link ClientHttpRequestFactory} is equivalent to
110
+ * calling {@link #get(ClientHttpRequestFactorySettings)}.
96
111
* @param <T> the {@link ClientHttpRequestFactory} type
97
112
* @param requestFactoryType the {@link ClientHttpRequestFactory} type
98
113
* @param settings the settings to apply
0 commit comments