@groovy.transform.CompileStatic @groovy.transform.EqualsAndHashCode(includes = ['name']) class MediaType extends java.lang.Object
Represents a media type
Modifiers | Name | Description |
---|---|---|
static MediaType |
ALL |
|
static MediaType |
ATOM_XML |
|
static java.lang.String |
CHARSET_PARAMETER |
|
static MediaType |
FORM |
|
static MediaType |
HAL_JSON |
|
static MediaType |
HAL_XML |
|
static MediaType |
HTML |
|
static MediaType |
JSON |
|
static MediaType |
MULTIPART_FORM |
|
static java.lang.String |
QUALITY_RATING |
|
static BigDecimal |
QUALITY_RATING_NUMBER |
|
static MediaType |
TEXT_JSON |
|
static MediaType |
TEXT_XML |
|
static MediaType |
VND_ERROR |
|
static MediaType |
XHTML |
|
static MediaType |
XML |
|
protected java.lang.String |
extension |
|
protected java.lang.String |
fullName |
|
protected java.lang.String |
name |
|
protected java.util.Map<java.lang.String, java.lang.String> |
parameters |
|
protected java.lang.String |
subtype |
|
protected java.lang.String |
type |
Type | Name and description |
---|---|
char |
charAt(int index) |
java.lang.String |
getExtension()
|
java.lang.String |
getFullName() @return Full name with parameters |
java.lang.String |
getName() @return The name of the mime type without any parameters |
java.util.Map<java.lang.String, java.lang.String> |
getParameters() @return The parameters to the media type |
java.lang.String |
getQuality() @return The quality of the Mime type |
BigDecimal |
getQualityAsNumber() @return The quality in BigDecimal form |
java.lang.String |
getSubtype()
|
java.lang.String |
getType()
|
java.lang.String |
getVersion() @return The version of the Mime type |
int |
length() |
java.lang.CharSequence |
subSequence(int start, int end) |
java.lang.String |
toString() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |