Class MediaTypeRegistry
java.lang.Object
io.vertx.reactivex.openapi.mediatype.MediaTypeRegistry
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
The MediaTypeRegistry contains all supported MediaTypes and Validators for the mediatypes. New MediaTypes can be registered
by providing new MediaTypeRegistrations.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMediaTypeRegistry(MediaTypeRegistry delegate) MediaTypeRegistry(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic MediaTypeRegistryCreates a default registry with application/json, application/multipart and text/plain mediatypes registered.static MediaTypeRegistryCreates an empty registry.booleanFinds the registration for the provided media type.inthashCode()booleanisSupported(String type) Checks if the provided media type is supported by the registrationstatic MediaTypeRegistryregister(MediaTypeRegistration registration) Registers a new MediaTypeHandlertoString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
MediaTypeRegistry
-
MediaTypeRegistry
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
createDefault
Creates a default registry with application/json, application/multipart and text/plain mediatypes registered.- Returns:
- A registry with default options.
-
createEmpty
Creates an empty registry.- Returns:
- An empty registry.
-
register
Registers a new MediaTypeHandler- Parameters:
registration- The mediatype registration.- Returns:
- This registry for a fluent interface.
-
isSupported
Checks if the provided media type is supported by the registration- Parameters:
type- The raw mediatype string- Returns:
- true if it supported, false otherwise
-
supportedTypes
-
get
Finds the registration for the provided media type.- Parameters:
mediaType- The media type to find the registration for.- Returns:
- The registration if found, null otherwise.
-
newInstance
-