Interface CustomContentType
- All Superinterfaces:
ODataProcessorFeature
- All Known Implementing Classes:
ODataSingleProcessor
Data processor feature if processor supports custom content types. By default the OData library supports
various types like Json (application/json), Atom (application/xml+atom) and XML (application/xml). But
the OData specification allows also other types like e.g. CSV or plain text.
-
Method Summary
Modifier and TypeMethodDescriptiongetCustomContentTypes(Class<? extends ODataProcessor> processorFeature) The OData library will consider these additional content types during negotiation of http content type header.
-
Method Details
-
getCustomContentTypes
List<String> getCustomContentTypes(Class<? extends ODataProcessor> processorFeature) throws ODataException The OData library will consider these additional content types during negotiation of http content type header.- Parameters:
processorFeature-- Returns:
- a list of additional supported content types in the format "type/sub type"
- Throws:
ODataException
-