Interface CustomContentType

  • All Superinterfaces:
    ODataProcessorFeature
    All Known Implementing Classes:
    ODataSingleProcessor

    public interface CustomContentType
    extends ODataProcessorFeature
    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 Detail

      • 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 - ProcessorFeature
        Returns:
        a list of additional supported content types in the format "type/sub type"
        Throws:
        ODataException - Caso ocorra exceção OData