|
29 | 29 | */ |
30 | 30 | public interface HttpMessageConverters extends Iterable<HttpMessageConverter<?>> { |
31 | 31 |
|
32 | | - |
33 | 32 | /** |
34 | 33 | * Create a builder instance, tailored for HTTP client usage. |
35 | 34 | * <p>The following HTTP message converters can be detected and registered if available, in order: |
36 | 35 | * <ol> |
37 | | - * <li>All custom message converters configured with the builder |
38 | | - * <li>{@link ByteArrayHttpMessageConverter} |
39 | | - * <li>{@link StringHttpMessageConverter} with the {@link java.nio.charset.StandardCharsets#ISO_8859_1} charset |
40 | | - * <li>{@link ResourceHttpMessageConverter}, with resource streaming support disabled |
41 | | - * <li>a Multipart converter, using all detected and custom converters for part conversion |
42 | | - * <li>A JSON converter |
43 | | - * <li>A Smile converter |
44 | | - * <li>A CBOR converter |
45 | | - * <li>A YAML converter |
46 | | - * <li>An XML converter |
47 | | - * <li>A ProtoBuf converter |
48 | | - * <li>ATOM and RSS converters |
| 36 | + * <li>All custom message converters configured with the builder |
| 37 | + * <li>{@link ByteArrayHttpMessageConverter} |
| 38 | + * <li>{@link StringHttpMessageConverter} with the {@link java.nio.charset.StandardCharsets#ISO_8859_1} charset |
| 39 | + * <li>{@link ResourceHttpMessageConverter}, with resource streaming support disabled |
| 40 | + * <li>a Multipart converter, using all detected and custom converters for part conversion |
| 41 | + * <li>A JSON converter |
| 42 | + * <li>A Smile converter |
| 43 | + * <li>A CBOR converter |
| 44 | + * <li>A YAML converter |
| 45 | + * <li>An XML converter |
| 46 | + * <li>A ProtoBuf converter |
| 47 | + * <li>ATOM and RSS converters |
49 | 48 | * </ol> |
50 | 49 | */ |
51 | 50 | static ClientBuilder forClient() { |
@@ -75,6 +74,7 @@ static ServerBuilder forServer() { |
75 | 74 | return new DefaultHttpMessageConverters.DefaultServerBuilder(); |
76 | 75 | } |
77 | 76 |
|
| 77 | + |
78 | 78 | interface Builder<T extends Builder<T>> { |
79 | 79 |
|
80 | 80 | /** |
@@ -150,18 +150,18 @@ interface Builder<T extends Builder<T>> { |
150 | 150 | HttpMessageConverters build(); |
151 | 151 | } |
152 | 152 |
|
| 153 | + |
153 | 154 | /** |
154 | 155 | * Client builder for an {@link HttpMessageConverters} instance. |
155 | 156 | */ |
156 | 157 | interface ClientBuilder extends Builder<ClientBuilder> { |
157 | | - |
158 | 158 | } |
159 | 159 |
|
| 160 | + |
160 | 161 | /** |
161 | 162 | * Server builder for an {@link HttpMessageConverters} instance. |
162 | 163 | */ |
163 | 164 | interface ServerBuilder extends Builder<ServerBuilder> { |
164 | | - |
165 | 165 | } |
166 | 166 |
|
167 | 167 | } |
0 commit comments