|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2022 the original author or authors. |
| 2 | + * Copyright 2002-2025 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
@@ -326,60 +326,6 @@ interface CustomCodecs {
|
326 | 326 | * @since 5.1.13
|
327 | 327 | */
|
328 | 328 | void registerWithDefaultConfig(Object codec, Consumer<DefaultCodecConfig> configConsumer);
|
329 |
| - |
330 |
| - /** |
331 |
| - * Add a custom {@code Decoder} internally wrapped with |
332 |
| - * {@link DecoderHttpMessageReader}). |
333 |
| - * @param decoder the decoder to add |
334 |
| - * @deprecated as of 5.1.13, use {@link #register(Object)} or |
335 |
| - * {@link #registerWithDefaultConfig(Object)} instead. |
336 |
| - */ |
337 |
| - @Deprecated |
338 |
| - void decoder(Decoder<?> decoder); |
339 |
| - |
340 |
| - /** |
341 |
| - * Add a custom {@code Encoder}, internally wrapped with |
342 |
| - * {@link EncoderHttpMessageWriter}. |
343 |
| - * @param encoder the encoder to add |
344 |
| - * @deprecated as of 5.1.13, use {@link #register(Object)} or |
345 |
| - * {@link #registerWithDefaultConfig(Object)} instead. |
346 |
| - */ |
347 |
| - @Deprecated |
348 |
| - void encoder(Encoder<?> encoder); |
349 |
| - |
350 |
| - /** |
351 |
| - * Add a custom {@link HttpMessageReader}. For readers of type |
352 |
| - * {@link DecoderHttpMessageReader} consider using the shortcut |
353 |
| - * {@link #decoder(Decoder)} instead. |
354 |
| - * @param reader the reader to add |
355 |
| - * @deprecated as of 5.1.13, use {@link #register(Object)} or |
356 |
| - * {@link #registerWithDefaultConfig(Object)} instead. |
357 |
| - */ |
358 |
| - @Deprecated |
359 |
| - void reader(HttpMessageReader<?> reader); |
360 |
| - |
361 |
| - /** |
362 |
| - * Add a custom {@link HttpMessageWriter}. For writers of type |
363 |
| - * {@link EncoderHttpMessageWriter} consider using the shortcut |
364 |
| - * {@link #encoder(Encoder)} instead. |
365 |
| - * @param writer the writer to add |
366 |
| - * @deprecated as of 5.1.13, use {@link #register(Object)} or |
367 |
| - * {@link #registerWithDefaultConfig(Object)} instead. |
368 |
| - */ |
369 |
| - @Deprecated |
370 |
| - void writer(HttpMessageWriter<?> writer); |
371 |
| - |
372 |
| - /** |
373 |
| - * Register a callback for the {@link DefaultCodecConfig configuration} |
374 |
| - * applied to default codecs. This allows custom codecs to follow general |
375 |
| - * guidelines applied to default ones, such as logging details and limiting |
376 |
| - * the amount of buffered data. |
377 |
| - * @param codecsConfigConsumer the default codecs configuration callback |
378 |
| - * @deprecated as of 5.1.13, use {@link #registerWithDefaultConfig(Object)} |
379 |
| - * or {@link #registerWithDefaultConfig(Object, Consumer)} instead. |
380 |
| - */ |
381 |
| - @Deprecated |
382 |
| - void withDefaultCodecConfig(Consumer<DefaultCodecConfig> codecsConfigConsumer); |
383 | 329 | }
|
384 | 330 |
|
385 | 331 |
|
|
0 commit comments