Class SwiftMxDataFormat.Builder
- java.lang.Object
-
- org.apache.camel.model.dataformat.SwiftMxDataFormat.Builder
-
- All Implemented Interfaces:
DataFormatBuilder<SwiftMxDataFormat>
- Enclosing class:
- SwiftMxDataFormat
public static class SwiftMxDataFormat.Builder extends Object implements DataFormatBuilder<SwiftMxDataFormat>
Builder
is a specific builder forSwiftMxDataFormat
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SwiftMxDataFormat
end()
Ends the build of the data format.SwiftMxDataFormat.Builder
readConfig(Object readConfig)
The specific configuration to use when unmarshalling an input stream.SwiftMxDataFormat.Builder
readConfigRef(String readConfigRef)
Refers to a specific configuration to use when unmarshalling an input stream to lookup from the registry.SwiftMxDataFormat.Builder
readMessageId(String readMessageId)
The type of MX message to produce when unmarshalling an input stream.SwiftMxDataFormat.Builder
writeConfig(Object writeConfig)
The specific configuration to use when marshalling a message.SwiftMxDataFormat.Builder
writeConfigRef(String writeConfigRef)
Refers to a specific configuration to use when marshalling a message to lookup from the registry.SwiftMxDataFormat.Builder
writeInJson(boolean writeInJson)
The flag indicating that messages must be marshalled in a JSON format.SwiftMxDataFormat.Builder
writeInJson(String writeInJson)
The flag indicating that messages must be marshalled in a JSON format.
-
-
-
Method Detail
-
writeConfig
public SwiftMxDataFormat.Builder writeConfig(Object writeConfig)
The specific configuration to use when marshalling a message.
-
writeInJson
public SwiftMxDataFormat.Builder writeInJson(String writeInJson)
The flag indicating that messages must be marshalled in a JSON format.- Parameters:
writeInJson
-true
if messages must be marshalled in a JSON format,false
otherwise.
-
writeInJson
public SwiftMxDataFormat.Builder writeInJson(boolean writeInJson)
The flag indicating that messages must be marshalled in a JSON format.- Parameters:
writeInJson
-true
if messages must be marshalled in a JSON format,false
otherwise.
-
readMessageId
public SwiftMxDataFormat.Builder readMessageId(String readMessageId)
The type of MX message to produce when unmarshalling an input stream. If not set, it will be automatically detected from the namespace used.
-
readConfig
public SwiftMxDataFormat.Builder readConfig(Object readConfig)
The specific configuration to use when unmarshalling an input stream.
-
writeConfigRef
public SwiftMxDataFormat.Builder writeConfigRef(String writeConfigRef)
Refers to a specific configuration to use when marshalling a message to lookup from the registry.
-
readConfigRef
public SwiftMxDataFormat.Builder readConfigRef(String readConfigRef)
Refers to a specific configuration to use when unmarshalling an input stream to lookup from the registry.
-
end
public SwiftMxDataFormat end()
Description copied from interface:DataFormatBuilder
Ends the build of the data format.- Specified by:
end
in interfaceDataFormatBuilder<SwiftMxDataFormat>
- Returns:
- the data format fully built.
-
-