@@ -84,8 +84,15 @@ private ClientHttpRequestFactories() {
84
84
}
85
85
86
86
/**
87
- * Return a new {@link ClientHttpRequestFactory} instance using the most appropriate
88
- * implementation.
87
+ * Return a {@link ClientHttpRequestFactory} implementation with the given
88
+ * {@code settings} applied. The first of the following implementations whose
89
+ * dependencies {@link ClassUtils#isPresent are available} is returned:
90
+ * <ol>
91
+ * <li>{@link HttpComponentsClientHttpRequestFactory}</li>
92
+ * <li>{@link OkHttp3ClientHttpRequestFactory}</li>
93
+ * <li>{@link JettyClientHttpRequestFactory}</li>
94
+ * <li>{@link SimpleClientHttpRequestFactory}</li>
95
+ * </ol>
89
96
* @param settings the settings to apply
90
97
* @return a new {@link ClientHttpRequestFactory}
91
98
*/
@@ -104,8 +111,19 @@ public static ClientHttpRequestFactory get(ClientHttpRequestFactorySettings sett
104
111
}
105
112
106
113
/**
107
- * Return a new {@link ClientHttpRequestFactory} of the given type, applying
108
- * {@link ClientHttpRequestFactorySettings} using reflection if necessary.
114
+ * Return a new {@link ClientHttpRequestFactory} of the given
115
+ * {@code requestFactoryType}, applying {@link ClientHttpRequestFactorySettings} using
116
+ * reflection if necessary. The following implementations are supported without the
117
+ * use of reflection:
118
+ * <ul>
119
+ * <li>{@link HttpComponentsClientHttpRequestFactory}</li>
120
+ * <li>{@link JdkClientHttpRequestFactory}</li>
121
+ * <li>{@link JettyClientHttpRequestFactory}</li>
122
+ * <li>{@link OkHttp3ClientHttpRequestFactory}</li>
123
+ * <li>{@link SimpleClientHttpRequestFactory}</li>
124
+ * </ul>
125
+ * A {@code requestFactoryType} of {@link ClientHttpRequestFactory} is equivalent to
126
+ * calling {@link #get(ClientHttpRequestFactorySettings)}.
109
127
* @param <T> the {@link ClientHttpRequestFactory} type
110
128
* @param requestFactoryType the {@link ClientHttpRequestFactory} type
111
129
* @param settings the settings to apply
0 commit comments