Package org.apache.camel.builder
Class DataFormatClause<T extends ProcessorDefinition<?>>
java.lang.Object
org.apache.camel.builder.DataFormatClause<T>
An expression for constructing the different possible
DataFormat
options.-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAllowsnull
as value of a body to unmarshall.allowNullBody
(boolean allowNullBody) Indicates whethernull
is allowed as value of a body to unmarshall.asn1()
Uses the ASN.1 file data formatUses the ASN.1 file data formatUses the ASN.1 file data formatUses the ASN.1 file data formatavro()
Uses the Avro data formatUses the Avro data format with given unmarshalTypeUses the Avro data format with given unmarshalType and schemaResolverUses Avro data format with the given unmarshalTypeavro
(AvroLibrary library) Uses Avro data format with libraryavro
(AvroLibrary library, Class<?> unmarshalType) Uses the Avro data format with given library and unmarshalTypeavro
(AvroLibrary library, Class<?> unmarshalType, String schemaResolver) Uses the Avro data format with given library, unmarshalType and schemaResolveravro
(AvroLibrary library, Object schema) Uses Avro data format with tje given library and schemaavro
(AvroLibrary library, String unmarshalTypeName) Uses Avro data format with given library and unmarshalTypebase64()
Uses the base64 data formatUses the base64 data formatUses the beanio data formatUses the beanio data formatbeanio
(String mapping, String streamName, String encoding, boolean ignoreUnidentifiedRecords, boolean ignoreUnexpectedRecords, boolean ignoreInvalidRecords) Uses the beanio data formatUses the beanio data formatUses the Bindy data formatUses the Bindy data formatcbor()
Uses the CBOR data formatUses the CBOR data formatcsv()
Uses the CSV data formatUses the CSV data format for a huge file.Uses the custom data formatfhirJson()
Uses the FHIR JSON data formatfhirJson
(boolean prettyPrint) fhirXml()
Uses the FHIR XML data formatfhirXml
(boolean prettyPrint) Uses the Grok data formatUses the GZIP deflater data formathl7()
Uses the HL7 data formathl7
(boolean validate) Uses the HL7 data formatUses the HL7 data formatical
(boolean validating) Uses the iCal data formatUses the Jackson XML data formatjacksonXml
(boolean prettyPrint) Uses the Jackson XML data format using the Jackson library turning pretty printing on or offjacksonXml
(Class<?> unmarshalType) Uses the Jackson XML data formatjacksonXml
(Class<?> unmarshalType, boolean prettyPrint) Uses the Jackson XML data formatjacksonXml
(Class<?> unmarshalType, Class<?> jsonView) Uses the Jackson XML data formatjacksonXml
(Class<?> unmarshalType, Class<?> jsonView, boolean prettyPrint) Uses the Jackson XML data formatjacksonXml
(Class<?> unmarshalType, Class<?> jsonView, String include) Uses the Jackson XML data formatjacksonXml
(Class<?> unmarshalType, Class<?> jsonView, String include, boolean prettyPrint) Uses the Jackson XML data formatjaxb()
Uses the JAXB data formatjaxb
(boolean prettyPrint) Uses the JAXB data format turning pretty printing on or offUses the JAXB data format with context pathjson()
Uses the JSON data format using the Jackson libraryjson
(boolean prettyPrint) Uses the JSON data format using the Jackson library turning pretty printing on or offUses the Jackson JSON data formatUses the Jackson JSON data formatUses the Jackson JSON data formatUses the Jackson JSON data formatUses the Jackson JSON data formatjson
(JsonLibrary library) Uses the JSON data formatjson
(JsonLibrary library, boolean prettyPrint) Uses the JSON data formatjson
(JsonLibrary type, Class<?> unmarshalType) Uses the JSON data formatjson
(JsonLibrary type, Class<?> unmarshalType, boolean prettyPrint) Uses the JSON data formatjsonApi()
Uses the JSON API data formatlzf()
Uses the LZF deflater data formatUses the MIME Multipart data formatmimeMultipart
(boolean multipartWithoutAttachment, boolean headersInline, boolean binaryContent) Uses the MIME Multipart data formatmimeMultipart
(String multipartSubType) Uses the MIME Multipart data formatmimeMultipart
(String multipartSubType, boolean multipartWithoutAttachment, boolean headersInline, boolean binaryContent) Uses the MIME Multipart data formatmimeMultipart
(String multipartSubType, boolean multipartWithoutAttachment, boolean headersInline, String includeHeaders, boolean binaryContent) Uses the MIME Multipart data formatUses the parquet-avro file data formatparquetAvro
(Class<?> unmarshalType) Uses the parquet-avro file data formatparquetAvro
(String unmarshalType) Uses the parquet-avro file data formatUses the PGP data formatUses the PGP data formatUses the PGP data formatprotobuf()
Uses the protobuf data formatprotobuf
(ProtobufLibrary library) Uses the Protobuf data format with given libraryprotobuf
(ProtobufLibrary library, Class<?> unmarshalType) Uses the Protobuf data format with given library and unmarshalTypeprotobuf
(ProtobufLibrary library, Class<?> unmarshalType, String schemaResolver) Uses the Protobuf data format with given library, unmarshalType and schemaResolverrss()
Uses the RSS data formatsoap()
Uses the Soap v1.1 data formatUses the Soap v1.1 data formatUses the Soap v1.1 data formatUses the Soap v1.1 data formatsoap12()
Uses the Soap v1.2 data formatUses the Soap v1.2 data formatUses the Soap v1.2 data formatUses the Soap v1.2 data formatswiftMt()
Uses the SWIFT MT data formatswiftMt
(boolean writeInJson) Uses the SWIFT MT data format.swiftMx()
Uses the SWIFT MX data formatswiftMx
(boolean writeInJson) Uses the SWIFT MX data format.Uses the SWIFT MX data format.Uses the SWIFT MX data format.Uses the SWIFT MX data format.Uses the SWIFT MX data format.syslog()
Uses the Syslog data formattarFile()
Uses the Tar file data formatthrift()
Uses the Thrift data formatReturn TidyMarkup in the default format asNode
tidyMarkup
(Class<?> dataObjectType) variableReceive
(String variableReceive) To use a variable to store the received message body (only body, not headers).variableSend
(String variableSend) To use a variable to store the received message body (only body, not headers).xmlSecurity
(byte[] passPhraseByte) Uses the XML Security data formatxmlSecurity
(String secureTag, boolean secureTagContents, byte[] passPhraseByte) Uses the XML Security data formatxmlSecurity
(String secureTag, boolean secureTagContents, byte[] passPhraseByte, String xmlCipherAlgorithm) Uses the XML Security data formatxmlSecurity
(String secureTag, boolean secureTagContents, String passPhrase) Uses the XML Security data formatxmlSecurity
(String secureTag, boolean secureTagContents, String passPhrase, String xmlCipherAlgorithm) Uses the XML Security data formatxmlSecurity
(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, String keyOrTrustStoreParametersId) Uses the XML Security data formatxmlSecurity
(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, String keyOrTrustStoreParametersId, String keyPassword) Uses the XML Security data formatxmlSecurity
(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, org.apache.camel.support.jsse.KeyStoreParameters keyOrTrustStoreParameters) Uses the XML Security data formatxmlSecurity
(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, org.apache.camel.support.jsse.KeyStoreParameters keyOrTrustStoreParameters, String keyPassword) Uses the XML Security data formatxmlSecurity
(String secureTag, Map<String, String> namespaces, boolean secureTagContents, byte[] passPhraseByte) Uses the XML Security data formatxmlSecurity
(String secureTag, Map<String, String> namespaces, boolean secureTagContents, byte[] passPhraseByte, String xmlCipherAlgorithm) Uses the XML Security data formatxmlSecurity
(String secureTag, Map<String, String> namespaces, boolean secureTagContents, String passPhrase) Uses the XML Security data formatxmlSecurity
(String secureTag, Map<String, String> namespaces, boolean secureTagContents, String passPhrase, String xmlCipherAlgorithm) Uses the XML Security data formatxmlSecurity
(String secureTag, Map<String, String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, String keyOrTrustStoreParametersId) Uses the XML Security data formatxmlSecurity
(String secureTag, Map<String, String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, String keyOrTrustStoreParametersId, String keyPassword) Uses the XML Security data formatxmlSecurity
(String secureTag, Map<String, String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, org.apache.camel.support.jsse.KeyStoreParameters keyOrTrustStoreParameters) Uses the XML Security data formatxmlSecurity
(String secureTag, Map<String, String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, org.apache.camel.support.jsse.KeyStoreParameters keyOrTrustStoreParameters, String keyPassword) Uses the XML Security data formatxmlSecurity
(String secureTag, Map<String, String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, org.apache.camel.support.jsse.KeyStoreParameters keyOrTrustStoreParameters, String keyPassword, String digestAlgorithm) Uses the XML Security data formatyaml
(YAMLLibrary library) Uses the YAML data formatyaml
(YAMLLibrary library, Class<?> type) Uses the YAML data formatUses the ZIP deflater data formatzipDeflater
(int compressionLevel) Uses the ZIP deflater data formatzipFile()
Uses the ZIP file data format
-
Constructor Details
-
DataFormatClause
-
-
Method Details
-
avro
Uses the Avro data format -
avro
Uses Avro data format with tje given library and schema -
avro
Uses Avro data format with the given unmarshalType -
avro
Uses Avro data format with given library and unmarshalType -
avro
Uses Avro data format with library -
avro
Uses the Avro data format with given unmarshalType -
avro
Uses the Avro data format with given library and unmarshalType -
avro
Uses the Avro data format with given unmarshalType and schemaResolver -
avro
Uses the Avro data format with given library, unmarshalType and schemaResolver -
base64
Uses the base64 data format -
base64
Uses the base64 data format -
beanio
Uses the beanio data format -
beanio
Uses the beanio data format -
beanio
public T beanio(String mapping, String streamName, String encoding, boolean ignoreUnidentifiedRecords, boolean ignoreUnexpectedRecords, boolean ignoreInvalidRecords) Uses the beanio data format -
beanio
public T beanio(String mapping, String streamName, String encoding, String beanReaderErrorHandlerType) Uses the beanio data format -
bindy
Uses the Bindy data format- Parameters:
type
- the type of bindy data format to useclassType
- the POJO class type
-
bindy
Uses the Bindy data format- Parameters:
type
- the type of bindy data format to useclassType
- the POJO class typeunwrapSingleInstance
- whether unmarshal should unwrap if there is a single instance in the result
-
cbor
Uses the CBOR data format -
cbor
Uses the CBOR data format- Parameters:
unmarshalType
- unmarshal type for cbor type
-
csv
Uses the CSV data format -
csvLazyLoad
Uses the CSV data format for a huge file. Sequential access through an iterator. -
custom
Uses the custom data format -
grok
Uses the Grok data format -
gzipDeflater
Uses the GZIP deflater data format -
hl7
Uses the HL7 data format -
hl7
Uses the HL7 data format -
hl7
Uses the HL7 data format -
ical
Uses the iCal data format -
lzf
Uses the LZF deflater data format -
mimeMultipart
Uses the MIME Multipart data format -
mimeMultipart
Uses the MIME Multipart data format- Parameters:
multipartSubType
- Specifies the subtype of the MIME Multipart
-
mimeMultipart
public T mimeMultipart(String multipartSubType, boolean multipartWithoutAttachment, boolean headersInline, boolean binaryContent) Uses the MIME Multipart data format- Parameters:
multipartSubType
- the subtype of the MIME MultipartmultipartWithoutAttachment
- defines whether a message without attachment is also marshaled into a MIME Multipart (with only one body part).headersInline
- define the MIME Multipart headers as part of the message body or as Camel headersbinaryContent
- have binary encoding for binary content (true) or use Base-64 encoding for binary content (false)
-
mimeMultipart
public T mimeMultipart(String multipartSubType, boolean multipartWithoutAttachment, boolean headersInline, String includeHeaders, boolean binaryContent) Uses the MIME Multipart data format- Parameters:
multipartSubType
- the subtype of the MIME MultipartmultipartWithoutAttachment
- defines whether a message without attachment is also marshaled into a MIME Multipart (with only one body part).headersInline
- define the MIME Multipart headers as part of the message body or as Camel headersincludeHeaders
- if headersInline is set to true all camel headers matching this regex are also stored as MIME headers on the MultipartbinaryContent
- have binary encoding for binary content (true) or use Base-64 encoding for binary content (false)
-
mimeMultipart
public T mimeMultipart(boolean multipartWithoutAttachment, boolean headersInline, boolean binaryContent) Uses the MIME Multipart data format- Parameters:
multipartWithoutAttachment
- defines whether a message without attachment is also marshaled into a MIME Multipart (with only one body part).headersInline
- define the MIME Multipart headers as part of the message body or as Camel headersbinaryContent
- have binary encoding for binary content (true) or use Base-64 encoding for binary content (false)
-
pgp
Uses the PGP data format -
pgp
Uses the PGP data format -
pgp
public T pgp(String keyFileName, String keyUserid, String password, boolean armored, boolean integrity) Uses the PGP data format -
jacksonXml
Uses the Jackson XML data format -
jacksonXml
Uses the Jackson XML data format- Parameters:
unmarshalType
- unmarshal type for xml jackson type
-
jacksonXml
Uses the Jackson XML data format- Parameters:
unmarshalType
- unmarshal type for xml jackson typejsonView
- the view type for xml jackson type
-
jacksonXml
Uses the Jackson XML data format using the Jackson library turning pretty printing on or off- Parameters:
prettyPrint
- turn pretty printing on or off
-
jacksonXml
Uses the Jackson XML data format- Parameters:
unmarshalType
- unmarshal type for xml jackson typeprettyPrint
- turn pretty printing on or off
-
jacksonXml
Uses the Jackson XML data format- Parameters:
unmarshalType
- unmarshal type for xml jackson typejsonView
- the view type for xml jackson typeprettyPrint
- turn pretty printing on or off
-
jacksonXml
Uses the Jackson XML data format- Parameters:
unmarshalType
- unmarshal type for xml jackson typejsonView
- the view type for xml jackson typeinclude
- include such as ALWAYS, NON_NULL, etc.
-
jacksonXml
Uses the Jackson XML data format- Parameters:
unmarshalType
- unmarshal type for xml jackson typejsonView
- the view type for xml jackson typeinclude
- include such as ALWAYS, NON_NULL, etc.prettyPrint
- turn pretty printing on or off
-
jaxb
Uses the JAXB data format -
jaxb
Uses the JAXB data format with context path -
jaxb
Uses the JAXB data format turning pretty printing on or off -
json
Uses the JSON data format using the Jackson library -
json
Uses the JSON data format using the Jackson library turning pretty printing on or off- Parameters:
prettyPrint
- turn pretty printing on or off
-
json
Uses the JSON data format- Parameters:
library
- the json library to use
-
json
Uses the JSON data format- Parameters:
library
- the json library to useprettyPrint
- turn pretty printing on or off
-
json
Uses the JSON data format- Parameters:
type
- the json type to useunmarshalType
- unmarshal type for json jackson type
-
json
Uses the JSON data format- Parameters:
type
- the json type to useunmarshalType
- unmarshal type for json jackson typeprettyPrint
- turn pretty printing on or off
-
json
Uses the Jackson JSON data format- Parameters:
unmarshalType
- unmarshal type for json jackson type
-
json
Uses the Jackson JSON data format- Parameters:
unmarshalType
- unmarshal type for json jackson typejsonView
- the view type for json jackson type
-
json
Uses the Jackson JSON data format- Parameters:
unmarshalType
- unmarshal type for json jackson typejsonView
- the view type for json jackson typeprettyPrint
- turn pretty printing on or off
-
json
Uses the Jackson JSON data format- Parameters:
unmarshalType
- unmarshal type for json jackson typejsonView
- the view type for json jackson typeinclude
- include such as ALWAYS, NON_NULL, etc.
-
json
Uses the Jackson JSON data format- Parameters:
unmarshalType
- unmarshal type for json jackson typejsonView
- the view type for json jackson typeinclude
- include such as ALWAYS, NON_NULL, etc.prettyPrint
- turn pretty printing on or off
-
jsonApi
Uses the JSON API data format -
protobuf
Uses the protobuf data format -
protobuf
-
protobuf
-
protobuf
-
protobuf
-
protobuf
Uses the Protobuf data format with given library -
protobuf
Uses the Protobuf data format with given library and unmarshalType -
protobuf
Uses the Protobuf data format with given library, unmarshalType and schemaResolver -
rss
Uses the RSS data format -
soap
Uses the Soap v1.1 data format -
soap
Uses the Soap v1.1 data format -
soap
Uses the Soap v1.1 data format -
soap
Uses the Soap v1.1 data format -
soap12
Uses the Soap v1.2 data format -
soap12
Uses the Soap v1.2 data format -
soap12
Uses the Soap v1.2 data format -
soap12
Uses the Soap v1.2 data format -
swiftMx
Uses the SWIFT MX data format -
swiftMx
Uses the SWIFT MX data format. -
swiftMx
Uses the SWIFT MX data format. -
swiftMx
Uses the SWIFT MX data format. -
swiftMx
Uses the SWIFT MX data format. -
swiftMx
Uses the SWIFT MX data format. -
swiftMt
Uses the SWIFT MT data format -
swiftMt
Uses the SWIFT MT data format. -
syslog
Uses the Syslog data format -
thrift
Uses the Thrift data format -
thrift
-
thrift
-
thrift
-
thrift
-
tidyMarkup
-
tidyMarkup
Return TidyMarkup in the default format asNode
-
yaml
Uses the YAML data format- Parameters:
library
- the yaml library to use
-
yaml
Uses the YAML data format- Parameters:
library
- the yaml type to usetype
- the type for json snakeyaml type
-
xmlSecurity
Uses the XML Security data format -
xmlSecurity
Uses the XML Security data format -
xmlSecurity
public T xmlSecurity(String secureTag, Map<String, String> namespaces, boolean secureTagContents, String passPhrase) Uses the XML Security data format -
xmlSecurity
public T xmlSecurity(String secureTag, boolean secureTagContents, String passPhrase, String xmlCipherAlgorithm) Uses the XML Security data format -
xmlSecurity
public T xmlSecurity(String secureTag, Map<String, String> namespaces, boolean secureTagContents, String passPhrase, String xmlCipherAlgorithm) Uses the XML Security data format -
xmlSecurity
Uses the XML Security data format -
xmlSecurity
public T xmlSecurity(String secureTag, Map<String, String> namespaces, boolean secureTagContents, byte[] passPhraseByte) Uses the XML Security data format -
xmlSecurity
public T xmlSecurity(String secureTag, boolean secureTagContents, byte[] passPhraseByte, String xmlCipherAlgorithm) Uses the XML Security data format -
xmlSecurity
public T xmlSecurity(String secureTag, Map<String, String> namespaces, boolean secureTagContents, byte[] passPhraseByte, String xmlCipherAlgorithm) Uses the XML Security data format -
xmlSecurity
public T xmlSecurity(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, String keyOrTrustStoreParametersId) Uses the XML Security data format -
xmlSecurity
public T xmlSecurity(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, String keyOrTrustStoreParametersId, String keyPassword) Uses the XML Security data format -
xmlSecurity
public T xmlSecurity(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, org.apache.camel.support.jsse.KeyStoreParameters keyOrTrustStoreParameters) Uses the XML Security data format -
xmlSecurity
public T xmlSecurity(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, org.apache.camel.support.jsse.KeyStoreParameters keyOrTrustStoreParameters, String keyPassword) Uses the XML Security data format -
xmlSecurity
public T xmlSecurity(String secureTag, Map<String, String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, String keyOrTrustStoreParametersId) Uses the XML Security data format -
xmlSecurity
public T xmlSecurity(String secureTag, Map<String, String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, String keyOrTrustStoreParametersId, String keyPassword) Uses the XML Security data format -
xmlSecurity
public T xmlSecurity(String secureTag, Map<String, String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, org.apache.camel.support.jsse.KeyStoreParameters keyOrTrustStoreParameters) Uses the XML Security data format -
xmlSecurity
public T xmlSecurity(String secureTag, Map<String, String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, org.apache.camel.support.jsse.KeyStoreParameters keyOrTrustStoreParameters, String keyPassword) Uses the XML Security data format -
xmlSecurity
public T xmlSecurity(String secureTag, Map<String, String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, org.apache.camel.support.jsse.KeyStoreParameters keyOrTrustStoreParameters, String keyPassword, String digestAlgorithm) Uses the XML Security data format -
tarFile
Uses the Tar file data format -
zipDeflater
Uses the ZIP deflater data format -
zipDeflater
Uses the ZIP deflater data format -
zipFile
Uses the ZIP file data format -
asn1
Uses the ASN.1 file data format -
asn1
Uses the ASN.1 file data format -
asn1
Uses the ASN.1 file data format -
asn1
Uses the ASN.1 file data format -
parquetAvro
Uses the parquet-avro file data format -
parquetAvro
Uses the parquet-avro file data format -
parquetAvro
Uses the parquet-avro file data format -
fhirJson
Uses the FHIR JSON data format -
fhirJson
-
fhirJson
-
fhirJson
-
fhirXml
Uses the FHIR XML data format -
fhirXml
-
fhirXml
-
fhirXml
-
allowNullBody
Allowsnull
as value of a body to unmarshall.- Returns:
- the builder
-
allowNullBody
Indicates whethernull
is allowed as value of a body to unmarshall.- Parameters:
allowNullBody
-true
ifnull
is allowed as value of a body to unmarshall,false
otherwise- Returns:
- the builder
-
variableSend
To use a variable to store the received message body (only body, not headers). This is handy for easy access to the received message body via variables. Important: When using receive variable then the received body is stored only in this variable and not on the currentMessage
. -
variableReceive
To use a variable to store the received message body (only body, not headers). This is handy for easy access to the received message body via variables. Important: When using receive variable then the received body is stored only in this variable and not on the currentMessage
.
-