Interface CustomContentTypeSupport
- All Superinterfaces:
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
Modifier and TypeMethodDescriptionmodifySupportedContentTypes
(List<ContentType> defaultContentTypes, RepresentationType type) Returns a list of supported content types.
-
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-)serializertype
- the current type of representation- Returns:
- modified list of supported content types
-