Class MediaType
java.lang.Object
io.vertx.rxjava3.openapi.contract.MediaType
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
This interface represents the most important attributes of an OpenAPI Operation.
Operation V3.1
Operation V3.0
Operation V3.1
Operation V3.0
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis method returns the schema defined in the media type.inthashCode()static booleanisMediaTypeSupported(String type) Deprecated.static booleanisVendorSpecificJson(String type) Deprecated.static MediaTypenewInstance(MediaType arg) toString()
-
Field Details
-
__TYPE_ARG
-
APPLICATION_JSON
- See Also:
-
APPLICATION_JSON_UTF8
- See Also:
-
MULTIPART_FORM_DATA
- See Also:
-
APPLICATION_HAL_JSON
- See Also:
-
APPLICATION_OCTET_STREAM
- See Also:
-
TEXT_PLAIN
- See Also:
-
TEXT_PLAIN_UTF8
- See Also:
-
SUPPORTED_MEDIA_TYPES
-
-
Constructor Details
-
MediaType
-
MediaType
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
isMediaTypeSupported
Deprecated.- Parameters:
type-- Returns:
-
isVendorSpecificJson
Deprecated.- Parameters:
type-- Returns:
-
getSchema
This method returns the schema defined in the media type. In OpenAPI 3.1 it is allowed to define an empty media type model. In this case the method returns null.- Returns:
- the schema defined in the media type model, or null in case no media type model was defined.
-
getIdentifier
- Returns:
- the identifier like application/json
-
newInstance
-