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 Details

    • 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