org.apache.olingo.server.api.serializer

## Interface CustomContentTypeSupport

- All Superinterfaces:
    OlingoExtension

      public interface CustomContentTypeSupport
      extends OlingoExtension

  Processors that supports custom content types can implement this interface.

  The processor can also remove default content types if the default (de-)serializers of Olingo are not used. By default this interface is not implemented and a processor supports content types implemented by Olingo's default (de-)serializer (e.g., `application/xml` for the metadata and application/json for the service document).

  Requesting a content type that is not supported results in an HTTP error 406 (Not Acceptable); sending content of an unsupported type results in an HTTP error 415 (Unsupported Media Type).

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `List<ContentType>` | `modifySupportedContentTypes(List<ContentType> defaultContentTypes, RepresentationType type)` Returns a list of supported content types.

- - ### Method Detail

    - #### modifySupportedContentTypes

          List<ContentType> modifySupportedContentTypes(List<ContentType> defaultContentTypes,
                                                        RepresentationType type)

      Returns a list of supported content types.
      Parameters:
        `defaultContentTypes` - content types supported by Olingo's (de-)serializer
        `type` - the current type of representation
      Returns:
        modified list of supported content types

Copyright © 2013–2020 The Apache Software Foundation. All rights reserved.