Class MediaType

  • All Implemented Interfaces:
    io.vertx.lang.rx.RxDelegate

    public class MediaType
    extends Object
    implements io.vertx.lang.rx.RxDelegate
    This interface represents the most important attributes of an OpenAPI Operation.
    Operation V3.1
    Operation V3.0

    NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.

    • Constructor Detail

      • MediaType

        public MediaType​(MediaType delegate)
      • MediaType

        public MediaType​(Object delegate)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getDelegate

        public MediaType getDelegate()
        Specified by:
        getDelegate in interface io.vertx.lang.rx.RxDelegate
      • isMediaTypeSupported

        public static boolean isMediaTypeSupported​(String type)
      • isVendorSpecificJson

        public static boolean isVendorSpecificJson​(String type)
      • getSchema

        public JsonSchema 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

        public String getIdentifier()
        Returns:
        the identifier like application/json