org.apache.olingo.odata2.api.processor.feature

## Interface CustomContentType

- All Superinterfaces:
    ODataProcessorFeature
  All Known Implementing Classes:
    CustomODataJPAProcessor, ListsProcessor, ODataJPADefaultProcessor, ODataJPAProcessor, 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 Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `List<String>` | `getCustomContentTypes(Class<? extends ODataProcessor> processorFeature)` The OData library will consider these additional content types during negotiation of http content type header.

- - ### 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` -
      Returns:
        a list of additional supported content types in the format "type/sub type"
      Throws:
        `ODataException`

Copyright © 2013-2023 The Apache Software Foundation. All Rights Reserved.