org.apache.olingo.odata2.api.annotation.edm
Annotation Type EdmMediaResourceMimeType


@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface EdmMediaResourceMimeType

Annotation for definition of an EdmProperty as mime type for the media resource of the EdmEntityType which contains the EdmProperty. The value of the EdmMediaResourceMimeType annotated field will be used as Content-Type of the media content response (of an OData $value request).

This annotation can not be parameterized, all values like name are defined via the EdmProperty annotation. In addition the EdmMediaResourceMimeType annotation has to be used in conjunction with an EdmProperty annotation on a field within an EdmEntityType annotated class.



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