org.apache.camel.builder
Class DataFormatClause<T extends ProcessorDefinition<?>>

java.lang.Object
  extended by org.apache.camel.builder.DataFormatClause<T>

public class DataFormatClause<T extends ProcessorDefinition<?>>
extends Object

An expression for constructing the different possible DataFormat options.

Version:

Nested Class Summary
static class DataFormatClause.Operation
          DataFormat operations.
 
Constructor Summary
DataFormatClause(T processorType, DataFormatClause.Operation operation)
           
 
Method Summary
 T bindy(BindyType type, String... packages)
          Uses the Bindy data format
 T c24io()
          Uses the C24IO data format for dealing with lots of different message formats such as SWIFT etc.
 T c24io(C24IOContentType contentType)
          Uses the C24IO data format with the specified content type for marshalling and unmarshalling messages
 T c24io(Class<?> dataObjectType)
          Uses the C24IO data format with the specified type of ComplexDataObject for marshalling and unmarshalling messages using the dataObject's default Source and Sink.
 T c24io(Class<?> elementType, C24IOContentType contentType)
          Uses the C24IO data format with the specified type of ComplexDataObject for marshalling and unmarshalling messages using the dataObject's default Source and Sink.
 T castor()
          Uses the Castor data format
 T castor(String mappingFile)
          Uses the Castor data format
 T castor(String mappingFile, boolean validation)
          Uses the Castor data format
 T csv()
          Uses the CSV data format
 T gzip()
          Uses the GZIP deflater data format
 T hl7()
          Uses the HL7 data format
 T hl7(boolean validate)
          Uses the HL7 data format
 T jaxb()
          Uses the JAXB data format
 T jaxb(boolean prettyPrint)
          Uses the JAXB data format turning pretty printing on or off
 T jaxb(String contextPath)
          Uses the JAXB data format with context path
 T jibx()
          Uses the JiBX data format.
 T jibx(Class unmarshallClass)
          Uses the JiBX data format with unmarshall class.
 T json()
          Uses the JSON data format using the XStream json library
 T json(JsonLibrary library)
          Uses the JSON data format
 T json(JsonLibrary type, Class<?> unmarshalType)
          Uses the JSON data format
 T protobuf()
          Uses the protobuf data format
 T protobuf(Object defaultInstance)
           
 T protobuf(String instanceClassName)
           
 T ref(String ref)
          Uses the ref data format
 T rss()
          Uses the RSS data format
 T secureXML()
          Uses the XML Security data format
 T secureXML(String secureTag, boolean secureTagContents)
          Uses the XML Security data format
 T secureXML(String secureTag, boolean secureTagContents, String passPhrase)
          Uses the XML Security data format
 T secureXML(String secureTag, boolean secureTagContents, String passPhrase, String xmlCipherAlgorithm)
          Uses the XML Security data format
 T serialization()
          Uses the Java Serialization data format
 T soapjaxb()
          Uses the Soap JAXB data format
 T soapjaxb(String contextPath)
          Uses the Soap JAXB data format
 T soapjaxb(String contextPath, Object elementNameStrategy)
          Uses the Soap JAXB data format
 T soapjaxb(String contextPath, String elementNameStrategyRef)
          Uses the Soap JAXB data format
 T string()
          Uses the String data format
 T string(String charset)
          Uses the String data format supporting encoding using given charset
 T syslog()
          Uses the Syslog data format
 T tidyMarkup()
          Return TidyMarkup in the default format as Node
 T tidyMarkup(Class<?> dataObjectType)
          Return WellFormed HTML (an XML Document) either String or Node
 T xmlBeans()
          Uses the xmlBeans data format
 T xstream()
          Uses the XStream data format
 T xstream(String encoding)
          Uses the xstream by setting the encoding
 T zip()
          Uses the ZIP deflater data format
 T zip(int compressionLevel)
          Uses the ZIP deflater data format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataFormatClause

public DataFormatClause(T processorType,
                        DataFormatClause.Operation operation)
Method Detail

bindy

public T bindy(BindyType type,
               String... packages)
Uses the Bindy data format

Parameters:
type - the type of bindy data format to use
packages - packages to scan for Bindy annotated POJO classes

c24io

public T c24io()
Uses the C24IO data format for dealing with lots of different message formats such as SWIFT etc.


c24io

public T c24io(Class<?> dataObjectType)
Uses the C24IO data format with the specified type of ComplexDataObject for marshalling and unmarshalling messages using the dataObject's default Source and Sink.


c24io

public T c24io(Class<?> elementType,
               C24IOContentType contentType)
Uses the C24IO data format with the specified type of ComplexDataObject for marshalling and unmarshalling messages using the dataObject's default Source and Sink.


c24io

public T c24io(C24IOContentType contentType)
Uses the C24IO data format with the specified content type for marshalling and unmarshalling messages


csv

public T csv()
Uses the CSV data format


castor

public T castor()
Uses the Castor data format


castor

public T castor(String mappingFile)
Uses the Castor data format

Parameters:
mappingFile - name of mapping file to locate in classpath

castor

public T castor(String mappingFile,
                boolean validation)
Uses the Castor data format

Parameters:
mappingFile - name of mapping file to locate in classpath
validation - whether validation is enabled or not

gzip

public T gzip()
Uses the GZIP deflater data format


hl7

public T hl7()
Uses the HL7 data format


hl7

public T hl7(boolean validate)
Uses the HL7 data format


jaxb

public T jaxb()
Uses the JAXB data format


jaxb

public T jaxb(String contextPath)
Uses the JAXB data format with context path


jaxb

public T jaxb(boolean prettyPrint)
Uses the JAXB data format turning pretty printing on or off


jibx

public T jibx()
Uses the JiBX data format.


jibx

public T jibx(Class unmarshallClass)
Uses the JiBX data format with unmarshall class.


json

public T json()
Uses the JSON data format using the XStream json library


json

public T json(JsonLibrary library)
Uses the JSON data format

Parameters:
library - the json library to use

json

public T json(JsonLibrary type,
              Class<?> unmarshalType)
Uses the JSON data format

Parameters:
type - the json type to use
unmarshalType - unmarshal type for json jackson type

protobuf

public T protobuf()
Uses the protobuf data format


protobuf

public T protobuf(Object defaultInstance)

protobuf

public T protobuf(String instanceClassName)

rss

public T rss()
Uses the RSS data format


ref

public T ref(String ref)
Uses the ref data format


serialization

public T serialization()
Uses the Java Serialization data format


soapjaxb

public T soapjaxb()
Uses the Soap JAXB data format


soapjaxb

public T soapjaxb(String contextPath)
Uses the Soap JAXB data format


soapjaxb

public T soapjaxb(String contextPath,
                  String elementNameStrategyRef)
Uses the Soap JAXB data format


soapjaxb

public T soapjaxb(String contextPath,
                  Object elementNameStrategy)
Uses the Soap JAXB data format


string

public T string()
Uses the String data format


string

public T string(String charset)
Uses the String data format supporting encoding using given charset


syslog

public T syslog()
Uses the Syslog data format


tidyMarkup

public T tidyMarkup(Class<?> dataObjectType)
Return WellFormed HTML (an XML Document) either String or Node


tidyMarkup

public T tidyMarkup()
Return TidyMarkup in the default format as Node


xstream

public T xstream()
Uses the XStream data format


xstream

public T xstream(String encoding)
Uses the xstream by setting the encoding


secureXML

public T secureXML()
Uses the XML Security data format


secureXML

public T secureXML(String secureTag,
                   boolean secureTagContents)
Uses the XML Security data format


secureXML

public T secureXML(String secureTag,
                   boolean secureTagContents,
                   String passPhrase)
Uses the XML Security data format


secureXML

public T secureXML(String secureTag,
                   boolean secureTagContents,
                   String passPhrase,
                   String xmlCipherAlgorithm)
Uses the XML Security data format


xmlBeans

public T xmlBeans()
Uses the xmlBeans data format


zip

public T zip()
Uses the ZIP deflater data format


zip

public T zip(int compressionLevel)
Uses the ZIP deflater data format



Apache CAMEL