Package | Description |
---|---|
org.eclipse.microprofile.openapi.models.media |
Copyright (c) 2017 Contributors to the Eclipse Foundation
|
Modifier and Type | Method and Description |
---|---|
MediaType |
MediaType.addEncoding(String key,
Encoding encodingItem)
Adds an Encoding item to the encoding property of a MediaType instance.
|
MediaType |
MediaType.addExample(String key,
Example example)
Adds an example item to the examples map of a MediaType instance.
|
MediaType |
MediaType.encoding(Map<String,Encoding> encoding)
Sets encoding property of a MediaType instance to the given map object.
|
MediaType |
MediaType.example(Object example)
Sets the example property of a MediaType instance to the given value.
|
MediaType |
MediaType.examples(Map<String,Example> examples)
Sets the examples field of a MediaType instance to the given map object.
|
MediaType |
MediaType.schema(Schema schema)
Sets the schema field of a MediaType instance to the given schema object.
|
Modifier and Type | Method and Description |
---|---|
Content |
Content.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.
|
Copyright © 2017–2018 Eclipse MicroProfile. All rights reserved.