@Metadata(firstVersion="2.20.0", label="dataformat,transformation", title="Thrift") public class ThriftDataFormat extends DataFormatDefinition implements ContentTypeHeaderAware
Constructor and Description |
---|
ThriftDataFormat() |
ThriftDataFormat(String instanceClass) |
ThriftDataFormat(String instanceClass,
String contentTypeFormat) |
Modifier and Type | Method and Description |
---|---|
String |
getContentTypeFormat() |
String |
getContentTypeHeader()
Whether the data format should set the Content-Type header with the type from the data format.
|
Object |
getDefaultInstance() |
String |
getInstanceClass() |
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 unmarshalling
|
getDataFormat, getDataFormatName, getShortName, setDataFormat, setDataFormatName
getId, setId
public ThriftDataFormat()
public ThriftDataFormat(String instanceClass)
public String getInstanceClass()
public void setInstanceClass(String instanceClass)
public void setContentTypeFormat(String contentTypeFormat)
public String getContentTypeFormat()
public String getContentTypeHeader()
ContentTypeHeaderAware
getContentTypeHeader
in interface ContentTypeHeaderAware
public void setContentTypeHeader(String contentTypeHeader)
ContentTypeHeaderAware
setContentTypeHeader
in interface ContentTypeHeaderAware
public Object getDefaultInstance()
public void setDefaultInstance(Object defaultInstance)
Apache Camel