Class MediaType

java.lang.Object
io.vertx.rxjava3.openapi.contract.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.

  • Field Details

  • Constructor Details

    • MediaType

      public MediaType(MediaType delegate)
    • MediaType

      public MediaType(Object delegate)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

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

      @Deprecated public static boolean isMediaTypeSupported(String type)
      Deprecated.
      Parameters:
      type -
      Returns:
    • isVendorSpecificJson

      @Deprecated public static boolean isVendorSpecificJson(String type)
      Deprecated.
      Parameters:
      type -
      Returns:
    • 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
    • newInstance

      public static MediaType newInstance(MediaType arg)