Class ThriftDataFormat
java.lang.Object
org.apache.camel.model.IdentifiedType
org.apache.camel.model.DataFormatDefinition
org.apache.camel.model.dataformat.ThriftDataFormat
- All Implemented Interfaces:
ContentTypeHeaderAware
@Metadata(firstVersion="2.20.0",
label="dataformat,transformation",
title="Thrift")
public class ThriftDataFormat
extends DataFormatDefinition
implements ContentTypeHeaderAware
Serialize and deserialize messages using Apache Thrift binary data format.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilderis a specific builder forThriftDataFormat. -
Constructor Summary
ConstructorsConstructorDescriptionThriftDataFormat(String instanceClass) ThriftDataFormat(String instanceClass, String contentTypeFormat) -
Method Summary
Modifier and TypeMethodDescriptionWhether the data format should set the Content-Type header with the type from the data format.voidsetContentTypeFormat(String contentTypeFormat) Defines a content type format in which thrift message will be serialized/deserialized from(to) the Java been.voidsetContentTypeHeader(String contentTypeHeader) Whether the data format should set the Content-Type header with the type from the data format.voidsetDefaultInstance(Object defaultInstance) voidsetInstanceClass(String instanceClass) Name of class to use when unmarshallingMethods inherited from class org.apache.camel.model.DataFormatDefinition
getDataFormat, getDataFormatName, getShortName, setDataFormat, setDataFormatNameMethods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
-
Constructor Details
-
ThriftDataFormat
public ThriftDataFormat() -
ThriftDataFormat
-
ThriftDataFormat
-
-
Method Details
-
getInstanceClass
-
setInstanceClass
Name of class to use when unmarshalling -
setContentTypeFormat
Defines a content type format in which thrift message will be serialized/deserialized from(to) the Java been. The format can either be native or json for either native binary thrift, json or simple json fields representation. The default value is binary. -
getContentTypeFormat
-
getContentTypeHeader
Description copied from interface:ContentTypeHeaderAwareWhether the data format should set the Content-Type header with the type from the data format. For example application/xml for data formats marshalling to XML, or application/json for data formats marshalling to JSON etc.- Specified by:
getContentTypeHeaderin interfaceContentTypeHeaderAware
-
setContentTypeHeader
Description copied from interface:ContentTypeHeaderAwareWhether the data format should set the Content-Type header with the type from the data format. For example application/xml for data formats marshalling to XML, or application/json for data formats marshalling to JSON etc.- Specified by:
setContentTypeHeaderin interfaceContentTypeHeaderAware
-
getDefaultInstance
-
setDefaultInstance
-