Class MediaTypeInfo
java.lang.Object
io.vertx.openapi.mediatype.MediaTypeInfo
Represents a media type string and provides simple access to the type, the suffix and the parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandoesInclude(MediaTypeInfo other) Checks if the other mediatype is compatible to this mediatype.booleanfullType()Get the type including suffix if available.inthashCode()static MediaTypeInfosubtype()suffix()toString()type()
-
Constructor Details
-
MediaTypeInfo
-
-
Method Details
-
of
-
type
-
subtype
-
fullType
Get the type including suffix if available.- Returns:
- type including suffix if available
-
parameters
-
suffix
-
equals
-
hashCode
-
toString
-
doesInclude
Checks if the other mediatype is compatible to this mediatype. The other mediatype is compatible when it is equal or more specific than this mediatype, e.g. application/vnd.example+json is more specific than application/vnd.example and thus compatible to it, whereas the other way around they are not compatible.- Parameters:
other- The other mediatype- Returns:
- true if it is compatible, false otherwise
-