class DefaultExchangeStrategiesBuilder extends java.lang.Object implements ExchangeStrategies.Builder
ExchangeStrategies.Builder
.Modifier and Type | Class and Description |
---|---|
private static class |
DefaultExchangeStrategiesBuilder.DefaultExchangeStrategies |
Modifier and Type | Field and Description |
---|---|
private static boolean |
jackson2Present |
private static boolean |
jaxb2Present |
private java.util.List<HttpMessageReader<?>> |
messageReaders |
private java.util.List<HttpMessageWriter<?>> |
messageWriters |
Constructor and Description |
---|
DefaultExchangeStrategiesBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
applicationContext(ApplicationContext applicationContext) |
ExchangeStrategies |
build()
Builds the
ExchangeStrategies . |
ExchangeStrategies.Builder |
decoder(Decoder<?> decoder)
Add the given decoder to this builder.
|
void |
defaultConfiguration() |
ExchangeStrategies.Builder |
encoder(Encoder<?> encoder)
Add the given encoder to this builder.
|
ExchangeStrategies.Builder |
messageReader(HttpMessageReader<?> messageReader)
Add the given message reader to this builder.
|
ExchangeStrategies.Builder |
messageWriter(HttpMessageWriter<?> messageWriter)
Add the given message writer to this builder.
|
private static final boolean jackson2Present
private static final boolean jaxb2Present
private final java.util.List<HttpMessageReader<?>> messageReaders
private final java.util.List<HttpMessageWriter<?>> messageWriters
public void defaultConfiguration()
public void applicationContext(ApplicationContext applicationContext)
public ExchangeStrategies.Builder messageReader(HttpMessageReader<?> messageReader)
ExchangeStrategies.Builder
messageReader
in interface ExchangeStrategies.Builder
messageReader
- the message reader to addpublic ExchangeStrategies.Builder decoder(Decoder<?> decoder)
ExchangeStrategies.Builder
DecoderHttpMessageReader
that wraps the given decoder.decoder
in interface ExchangeStrategies.Builder
decoder
- the decoder to addpublic ExchangeStrategies.Builder messageWriter(HttpMessageWriter<?> messageWriter)
ExchangeStrategies.Builder
messageWriter
in interface ExchangeStrategies.Builder
messageWriter
- the message writer to addpublic ExchangeStrategies.Builder encoder(Encoder<?> encoder)
ExchangeStrategies.Builder
EncoderHttpMessageWriter
that wraps the given encoder.encoder
in interface ExchangeStrategies.Builder
encoder
- the encoder to addpublic ExchangeStrategies build()
ExchangeStrategies.Builder
ExchangeStrategies
.build
in interface ExchangeStrategies.Builder