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
Modifier and TypeClassDescriptionstatic class
Builder
is a specific builder forThriftDataFormat
. -
Constructor Summary
ConstructorDescriptionThriftDataFormat
(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.void
setContentTypeFormat
(String contentTypeFormat) Defines a content type format in which thrift message will be serialized/deserialized from(to) the Java been.void
setContentTypeHeader
(String contentTypeHeader) Whether the data format should set the Content-Type header with the type from the data format.void
setDefaultInstance
(Object defaultInstance) void
setInstanceClass
(String instanceClass) Name of class to use when unmarshallingMethods inherited from class org.apache.camel.model.DataFormatDefinition
getDataFormat, getDataFormatName, getShortName, setDataFormat, setDataFormatName
Methods 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:ContentTypeHeaderAware
Whether 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:
getContentTypeHeader
in interfaceContentTypeHeaderAware
-
setContentTypeHeader
Description copied from interface:ContentTypeHeaderAware
Whether 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:
setContentTypeHeader
in interfaceContentTypeHeaderAware
-
getDefaultInstance
-
setDefaultInstance
-