Interface Content
- All Superinterfaces:
Constructible
,Map<String,
MediaType>
Content
A map to assist describing the media types for an operation's parameter or response.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddMediaType
(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.Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Method Details
-
addMediaType
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.- Parameters:
name
- the name of a media type e.g. application/json.mediaType
- an object that describes the content passed into or returned from an operation.- Returns:
- the current Content instance
-