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 for SwiftMxDataFormat.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • 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 interface DataFormatBuilder<SwiftMxDataFormat>
      Returns:
      the data format fully built.