Class ThriftDataFormat.Builder
java.lang.Object
org.apache.camel.model.dataformat.ThriftDataFormat.Builder
- All Implemented Interfaces:
DataFormatBuilder<ThriftDataFormat>
- Enclosing class:
- ThriftDataFormat
public static class ThriftDataFormat.Builder
extends Object
implements DataFormatBuilder<ThriftDataFormat>
Builder
is a specific builder for ThriftDataFormat
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncontentTypeFormat
(String contentTypeFormat) Defines a content type format in which thrift message will be serialized/deserialized from(to) the Java been.contentTypeHeader
(boolean contentTypeHeader) contentTypeHeader
(String contentTypeHeader) defaultInstance
(Object defaultInstance) end()
Ends the build of the data format.instanceClass
(String instanceClass) Name of class to use when unmarshalling
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceClass
Name of class to use when unmarshalling -
contentTypeFormat
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. -
contentTypeHeader
-
contentTypeHeader
-
defaultInstance
-
end
Description copied from interface:DataFormatBuilder
Ends the build of the data format.- Specified by:
end
in interfaceDataFormatBuilder<ThriftDataFormat>
- Returns:
- the data format fully built.
-