org.springframework.http.codec.ClientCodecConfigurer Java Examples
The following examples show how to use
org.springframework.http.codec.ClientCodecConfigurer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RequestPartMethodArgumentResolverTests.java From spring-analysis-note with MIT License | 5 votes |
@Before public void setup() throws Exception { List<HttpMessageReader<?>> readers = ServerCodecConfigurer.create().getReaders(); ReactiveAdapterRegistry registry = ReactiveAdapterRegistry.getSharedInstance(); this.resolver = new RequestPartMethodArgumentResolver(readers, registry); List<HttpMessageWriter<?>> writers = ClientCodecConfigurer.create().getWriters(); this.writer = new MultipartHttpMessageWriter(writers); }
Example #2
Source File: ClientDefaultCodecsImpl.java From spring-analysis-note with MIT License | 5 votes |
@Override public ClientCodecConfigurer.MultipartCodecs multipartCodecs() { if (this.multipartCodecs == null) { this.multipartCodecs = new DefaultMultipartCodecs(); } return this.multipartCodecs; }
Example #3
Source File: RequestPartMethodArgumentResolverTests.java From java-technology-stack with MIT License | 5 votes |
@Before public void setup() throws Exception { List<HttpMessageReader<?>> readers = ServerCodecConfigurer.create().getReaders(); ReactiveAdapterRegistry registry = ReactiveAdapterRegistry.getSharedInstance(); this.resolver = new RequestPartMethodArgumentResolver(readers, registry); List<HttpMessageWriter<?>> writers = ClientCodecConfigurer.create().getWriters(); this.writer = new MultipartHttpMessageWriter(writers); }
Example #4
Source File: ClientDefaultCodecsImpl.java From java-technology-stack with MIT License | 5 votes |
@Override public ClientCodecConfigurer.MultipartCodecs multipartCodecs() { if (this.multipartCodecs == null) { this.multipartCodecs = new DefaultMultipartCodecs(); } return this.multipartCodecs; }
Example #5
Source File: DefaultExchangeStrategiesBuilder.java From spring-analysis-note with MIT License | 4 votes |
@Override public ExchangeStrategies.Builder codecs(Consumer<ClientCodecConfigurer> consumer) { consumer.accept(this.codecConfigurer); return this; }
Example #6
Source File: DefaultExchangeStrategiesBuilder.java From java-technology-stack with MIT License | 4 votes |
@Override public ExchangeStrategies.Builder codecs(Consumer<ClientCodecConfigurer> consumer) { consumer.accept(this.codecConfigurer); return this; }
Example #7
Source File: ExchangeStrategies.java From spring-analysis-note with MIT License | 2 votes |
/** * Customize the list of client-side HTTP message readers and writers. * @param consumer the consumer to customize the codecs * @return this builder */ Builder codecs(Consumer<ClientCodecConfigurer> consumer);
Example #8
Source File: ExchangeStrategies.java From java-technology-stack with MIT License | 2 votes |
/** * Customize the list of client-side HTTP message readers and writers. * @param consumer the consumer to customize the codecs * @return this builder */ Builder codecs(Consumer<ClientCodecConfigurer> consumer);