Package org.apache.camel.spi
Interface DataFormatContentTypeHeader
public interface DataFormatContentTypeHeader
Special accessor for a DataFormat
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setContentTypeHeader
(boolean contentTypeHeader) Whether the data format should set the Content-Type header with the type from the data format if the data format is capable of doing so.
-
Method Details
-
setContentTypeHeader
void setContentTypeHeader(boolean contentTypeHeader) Whether the data format should set the Content-Type header with the type from the data format if the data format is capable of doing so. For example application/xml for data formats marshalling to XML, or application/json for data formats marshalling to JSON etc.
-