public class DataFormatClause<T extends ProcessorDefinition<?>> extends Object
DataFormat
options.Modifier and Type | Class and Description |
---|---|
static class |
DataFormatClause.Operation
DataFormat operations. |
Constructor and Description |
---|
DataFormatClause(T processorType,
DataFormatClause.Operation operation) |
Modifier and Type | Method and Description |
---|---|
T |
avro()
Uses the Avro data format
|
T |
avro(Object schema) |
T |
avro(String instanceClassName) |
T |
base64()
Uses the base64 data format
|
T |
base64(int lineLength,
String lineSeparator,
boolean urlSafe)
Uses the base64 data format
|
T |
beanio(String mapping,
String streamName)
Uses the beanio data format
|
T |
beanio(String mapping,
String streamName,
String encoding)
Uses the beanio data format
|
T |
beanio(String mapping,
String streamName,
String encoding,
boolean ignoreUnidentifiedRecords,
boolean ignoreUnexpectedRecords,
boolean ignoreInvalidRecords)
Uses the beanio data format
|
T |
bindy(BindyType type,
Class<?> classType)
Uses the Bindy data format
|
T |
boon(Class<?> classType)
Uses the Boon data format
|
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 |
csvLazyLoad()
Uses the CSV data format for a huge file.
|
T |
custom(String ref)
Uses the custom 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 |
hl7(Object parser)
Uses the HL7 data format
|
T |
ical(boolean validating)
Uses the iCal data format
|
T |
jacksonxml()
Uses the Jackson XML data format
|
T |
jacksonxml(boolean prettyPrint)
Uses the Jackson XML data format using the Jackson library turning pretty
printing on or off
|
T |
jacksonxml(Class<?> unmarshalType)
Uses the Jackson XML data format
|
T |
jacksonxml(Class<?> unmarshalType,
boolean prettyPrint)
Uses the Jackson XML data format
|
T |
jacksonxml(Class<?> unmarshalType,
Class<?> jsonView)
Uses the Jackson XML data format
|
T |
jacksonxml(Class<?> unmarshalType,
Class<?> jsonView,
boolean prettyPrint)
Uses the Jackson XML data format
|
T |
jacksonxml(Class<?> unmarshalType,
Class<?> jsonView,
String include)
Uses the Jackson XML data format
|
T |
jacksonxml(Class<?> unmarshalType,
Class<?> jsonView,
String include,
boolean prettyPrint)
Uses the Jackson XML 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(boolean prettyPrint)
Uses the JSON data format using the XStream json library turning pretty printing on or off
|
T |
json(Class<?> unmarshalType,
Class<?> jsonView)
Uses the Jackson JSON data format
|
T |
json(Class<?> unmarshalType,
Class<?> jsonView,
boolean prettyPrint)
Uses the Jackson JSON data format
|
T |
json(Class<?> unmarshalType,
Class<?> jsonView,
String include)
Uses the Jackson JSON data format
|
T |
json(Class<?> unmarshalType,
Class<?> jsonView,
String include,
boolean prettyPrint)
Uses the Jackson JSON data format
|
T |
json(JsonLibrary library)
Uses the JSON data format
|
T |
json(JsonLibrary library,
boolean prettyPrint)
Uses the JSON data format
|
T |
json(JsonLibrary type,
Class<?> unmarshalType)
Uses the JSON data format
|
T |
json(JsonLibrary type,
Class<?> unmarshalType,
boolean prettyPrint)
Uses the JSON data format
|
T |
pgp(String keyFileName,
String keyUserid)
Uses the PGP data format
|
T |
pgp(String keyFileName,
String keyUserid,
String password)
Uses the PGP data format
|
T |
pgp(String keyFileName,
String keyUserid,
String password,
boolean armored,
boolean integrity)
Uses the PGP data format
|
T |
protobuf()
Uses the protobuf data format
|
T |
protobuf(Object defaultInstance) |
T |
protobuf(String instanceClassName) |
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 |
secureXML(String secureTag,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm)
Deprecated.
Use
secureXML(String, Map, boolean, String, String, String, String) instead.
Uses the XML Security data format |
T |
secureXML(String secureTag,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm,
KeyStoreParameters keyOrTrustStoreParameters)
Uses the XML Security data format
|
T |
secureXML(String secureTag,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm,
KeyStoreParameters keyOrTrustStoreParameters,
String keyPassword)
Uses the XML Security data format
|
T |
secureXML(String secureTag,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm,
String keyOrTrustStoreParametersId)
Uses the XML Security data format
|
T |
secureXML(String secureTag,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm,
String keyOrTrustStoreParametersId,
String keyPassword)
Uses the XML Security data format
|
T |
secureXML(String secureTag,
Map<String,String> namespaces,
boolean secureTagContents)
Uses the XML Security data format
|
T |
secureXML(String secureTag,
Map<String,String> namespaces,
boolean secureTagContents,
String passPhrase)
Uses the XML Security data format
|
T |
secureXML(String secureTag,
Map<String,String> namespaces,
boolean secureTagContents,
String passPhrase,
String xmlCipherAlgorithm)
Uses the XML Security data format
|
T |
secureXML(String secureTag,
Map<String,String> namespaces,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm,
KeyStoreParameters keyOrTrustStoreParameters)
Uses the XML Security data format
|
T |
secureXML(String secureTag,
Map<String,String> namespaces,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm,
KeyStoreParameters keyOrTrustStoreParameters,
String keyPassword)
Uses the XML Security data format
|
T |
secureXML(String secureTag,
Map<String,String> namespaces,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm,
KeyStoreParameters keyOrTrustStoreParameters,
String keyPassword,
String digestAlgorithm)
Uses the XML Security data format
|
T |
secureXML(String secureTag,
Map<String,String> namespaces,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm,
String keyOrTrustStoreParametersId)
Uses the XML Security data format
|
T |
secureXML(String secureTag,
Map<String,String> namespaces,
boolean secureTagContents,
String recipientKeyAlias,
String xmlCipherAlgorithm,
String keyCipherAlgorithm,
String keyOrTrustStoreParametersId,
String keyPassword)
Uses the XML Security data format
|
T |
serialization()
Uses the Java Serialization data format
|
T |
soapjaxb()
Uses the Soap 1.1 JAXB data format
|
T |
soapjaxb(String contextPath)
Uses the Soap 1.1 JAXB data format
|
T |
soapjaxb(String contextPath,
Object elementNameStrategy)
Uses the Soap 1.1 JAXB data format
|
T |
soapjaxb(String contextPath,
String elementNameStrategyRef)
Uses the Soap 1.1 JAXB data format
|
T |
soapjaxb12()
Uses the Soap 1.2 JAXB data format
|
T |
soapjaxb12(String contextPath)
Uses the Soap 1.2 JAXB data format
|
T |
soapjaxb12(String contextPath,
Object elementNameStrategy)
Uses the Soap JAXB data format
|
T |
soapjaxb12(String contextPath,
String elementNameStrategyRef)
Uses the Soap 1.2 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)
|
T |
xmlBeans()
Uses the xmlBeans data format
|
T |
xmljson()
Uses the xmljson dataformat, based on json-lib
|
T |
xmljson(Map<String,String> options)
Uses the xmljson dataformat, based on json-lib, initializing custom options with a Map
|
T |
xstream()
Uses the XStream data format.
|
T |
xstream(Class<?> type)
Uses the xstream by permitting the java type
|
T |
xstream(String encodingOrPermission)
Uses the xstream by setting the encoding or permission
|
T |
xstream(String encoding,
Class<?>... type)
Uses the xstream by permitting the java type
|
T |
xstream(String encoding,
String permission)
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
|
T |
zipFile()
Uses the ZIP file data format
|
public DataFormatClause(T processorType, DataFormatClause.Operation operation)
public T base64(int lineLength, String lineSeparator, boolean urlSafe)
public T beanio(String mapping, String streamName, String encoding)
public T beanio(String mapping, String streamName, String encoding, boolean ignoreUnidentifiedRecords, boolean ignoreUnexpectedRecords, boolean ignoreInvalidRecords)
public T bindy(BindyType type, Class<?> classType)
type
- the type of bindy data format to useclassType
- the POJO class typepublic T boon(Class<?> classType)
classType
- the POJO class typepublic T csvLazyLoad()
public T castor(String mappingFile)
mappingFile
- name of mapping file to locate in classpathpublic T castor(String mappingFile, boolean validation)
mappingFile
- name of mapping file to locate in classpathvalidation
- whether validation is enabled or notpublic T pgp(String keyFileName, String keyUserid, String password, boolean armored, boolean integrity)
public T jacksonxml()
public T jacksonxml(Class<?> unmarshalType)
unmarshalType
- unmarshal type for xml jackson typepublic T jacksonxml(Class<?> unmarshalType, Class<?> jsonView)
unmarshalType
- unmarshal type for xml jackson typejsonView
- the view type for xml jackson typepublic T jacksonxml(boolean prettyPrint)
prettyPrint
- turn pretty printing on or offpublic T jacksonxml(Class<?> unmarshalType, boolean prettyPrint)
unmarshalType
- unmarshal type for xml jackson typeprettyPrint
- turn pretty printing on or offpublic T jacksonxml(Class<?> unmarshalType, Class<?> jsonView, boolean prettyPrint)
unmarshalType
- unmarshal type for xml jackson typejsonView
- the view type for xml jackson typeprettyPrint
- turn pretty printing on or offpublic T jacksonxml(Class<?> unmarshalType, Class<?> jsonView, String include)
unmarshalType
- unmarshal type for xml jackson typejsonView
- the view type for xml jackson typeinclude
- include such as ALWAYS, NON_NULL, etc.public T jacksonxml(Class<?> unmarshalType, Class<?> jsonView, String include, boolean prettyPrint)
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 offpublic T json(boolean prettyPrint)
prettyPrint
- turn pretty printing on or offpublic T json(JsonLibrary library)
library
- the json library to usepublic T json(JsonLibrary library, boolean prettyPrint)
library
- the json library to useprettyPrint
- turn pretty printing on or offpublic T json(JsonLibrary type, Class<?> unmarshalType)
type
- the json type to useunmarshalType
- unmarshal type for json jackson typepublic T json(JsonLibrary type, Class<?> unmarshalType, boolean prettyPrint)
type
- the json type to useunmarshalType
- unmarshal type for json jackson typeprettyPrint
- turn pretty printing on or offpublic T json(Class<?> unmarshalType, Class<?> jsonView)
unmarshalType
- unmarshal type for json jackson typejsonView
- the view type for json jackson typepublic T json(Class<?> unmarshalType, Class<?> jsonView, boolean prettyPrint)
unmarshalType
- unmarshal type for json jackson typejsonView
- the view type for json jackson typeprettyPrint
- turn pretty printing on or offpublic T json(Class<?> unmarshalType, Class<?> jsonView, String include)
unmarshalType
- unmarshal type for json jackson typejsonView
- the view type for json jackson typeinclude
- include such as ALWAYS, NON_NULL, etc.public T json(Class<?> unmarshalType, Class<?> jsonView, String include, boolean prettyPrint)
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 offpublic T serialization()
public T soapjaxb(String contextPath, String elementNameStrategyRef)
public T soapjaxb(String contextPath, Object elementNameStrategy)
public T soapjaxb12()
public T soapjaxb12(String contextPath)
public T soapjaxb12(String contextPath, String elementNameStrategyRef)
public T soapjaxb12(String contextPath, Object elementNameStrategy)
public T string(String charset)
public T tidyMarkup(Class<?> dataObjectType)
public T tidyMarkup()
Node
public T xstream()
xstream(String)
to pass in a permissionpublic T xstream(String encodingOrPermission)
encodingOrPermission
- is either an encoding or permission syntaxpublic T xstream(String encoding, String permission)
public T xstream(Class<?> type)
type
- the pojo xstream should use as allowed permissionpublic T xstream(String encoding, Class<?>... type)
encoding
- encoding to usetype
- the pojo class(es) xstream should use as allowed permissionpublic T secureXML(String secureTag, boolean secureTagContents)
public T secureXML(String secureTag, Map<String,String> namespaces, boolean secureTagContents)
public T secureXML(String secureTag, boolean secureTagContents, String passPhrase)
public T secureXML(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String passPhrase)
public T secureXML(String secureTag, boolean secureTagContents, String passPhrase, String xmlCipherAlgorithm)
public T secureXML(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String passPhrase, String xmlCipherAlgorithm)
@Deprecated public T secureXML(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm)
secureXML(String, Map, boolean, String, String, String, String)
instead.
Uses the XML Security data formatpublic T secureXML(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, String keyOrTrustStoreParametersId)
public T secureXML(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, String keyOrTrustStoreParametersId, String keyPassword)
public T secureXML(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, KeyStoreParameters keyOrTrustStoreParameters)
public T secureXML(String secureTag, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, KeyStoreParameters keyOrTrustStoreParameters, String keyPassword)
public T secureXML(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, String keyOrTrustStoreParametersId)
public T secureXML(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, String keyOrTrustStoreParametersId, String keyPassword)
public T secureXML(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, KeyStoreParameters keyOrTrustStoreParameters)
public T secureXML(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, KeyStoreParameters keyOrTrustStoreParameters, String keyPassword)
public T secureXML(String secureTag, Map<String,String> namespaces, boolean secureTagContents, String recipientKeyAlias, String xmlCipherAlgorithm, String keyCipherAlgorithm, KeyStoreParameters keyOrTrustStoreParameters, String keyPassword, String digestAlgorithm)
public T xmljson(Map<String,String> options)
Apache Camel