Interface ContentTypeHeaderAware
- All Known Implementing Classes:
FhirDataformat
,FhirJsonDataFormat
,FhirXmlDataFormat
,JacksonXMLDataFormat
,JaxbDataFormat
,JsonDataFormat
,ProtobufDataFormat
,ThriftDataFormat
public interface ContentTypeHeaderAware
Data format that is capable of using content type header.
-
Method Summary
Modifier and TypeMethodDescriptionWhether the data format should set the Content-Type header with the type from the data format.void
setContentTypeHeader
(String contentTypeHeader) Whether the data format should set the Content-Type header with the type from the data format.
-
Method Details
-
getContentTypeHeader
String getContentTypeHeader()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. -
setContentTypeHeader
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.
-