Uses of Interface
org.eclipse.microprofile.openapi.models.media.MediaType
Packages that use MediaType
Package
Description
A set of Java interfaces, annotations and programming models which allow Java developers to natively produce OpenAPI
v3.1 documents from their Jakarta REST applications.
A set of interfaces for programmable models to represent input and output data types and media types.
-
Uses of MediaType in org.eclipse.microprofile.openapi
Methods in org.eclipse.microprofile.openapi that return MediaTypeModifier and TypeMethodDescriptionstatic MediaTypeOASFactory.createMediaType()This method creates a newMediaTypeinstance. -
Uses of MediaType in org.eclipse.microprofile.openapi.models.media
Methods in org.eclipse.microprofile.openapi.models.media that return MediaTypeModifier and TypeMethodDescriptionMediaType.addEncoding(String key, Encoding encodingItem) Adds an Encoding item to the encoding property of a MediaType instance.MediaType.addExample(String key, Example example) Adds an example item to the examples map of a MediaType instance.default MediaTypeSets encoding property of a MediaType instance to the given map object.default MediaTypeSets the example property of a MediaType instance to the given value.default MediaTypeSets the examples field of a MediaType instance to the given map object.default MediaTypeContent.getMediaType(String name) Returns a media type for a given name.default MediaTypeSets the schema field of a MediaType instance to the given schema object.Methods in org.eclipse.microprofile.openapi.models.media that return types with arguments of type MediaTypeModifier and TypeMethodDescriptionContent.getMediaTypes()Returns a copy map (potentially immutable) of media types.Methods in org.eclipse.microprofile.openapi.models.media with parameters of type MediaTypeModifier and TypeMethodDescriptionContent.addMediaType(String name, MediaType mediaType) Adds the MediaType for this Content, where the key is the name of the MediaType and the value is the object that describes the content passed into or returned from an operation.Method parameters in org.eclipse.microprofile.openapi.models.media with type arguments of type MediaTypeModifier and TypeMethodDescriptionvoidContent.setMediaTypes(Map<String, MediaType> mediaTypes) Set the media types map to this Content