- toString
Convert the media type to a string suitable for use as the value of a
corresponding HTTP header.
- valueOf
Creates a new instance of MediaType by parsing the supplied string.
- getSubtype
Getter for subtype.
- isCompatible
Check if this media type is compatible with another media type. E.g. image/* is
compatible with imag
- equals
Compares obj to this media type to see if they are the same by comparing type,
subtype and parameter
- getType
Getter for primary type.
- getParameters
- <init>
Creates a new instance of MediaType with the supplied type, subtype and
parameters.
- isWildcardType
Checks if the primary type is a wildcard.
- isWildcardSubtype
Checks if the subtype is a wildcard.
- hashCode
Generate a hash code from the type, subtype and parameters. Note that the
#equals(java.lang.Object)
- withCharset
Create a new MediaType instance with the same type, subtype and parameters
copied from the original