@groovy.transform.CompileStatic class MimeType extends java.lang.Object
| Modifiers | Name | Description |
|---|---|---|
static MimeType |
ALL |
|
static MimeType |
ATOM_XML |
|
static java.lang.String |
BEAN_NAME |
The bean name used to store the mime type definitions |
static MimeType |
FORM |
|
static MimeType |
HAL_JSON |
|
static MimeType |
HAL_XML |
|
static MimeType |
HTML |
|
static MimeType |
JSON |
|
static MimeType |
JSON_API |
|
static MimeType |
MULTIPART_FORM |
|
static java.lang.String |
QUALITY_RATING |
|
static BigDecimal |
QUALITY_RATING_NUMBER |
|
static MimeType |
TEXT_JSON |
|
static MimeType |
TEXT_XML |
|
static MimeType |
XHTML |
|
static MimeType |
XML |
| Type | Name and description |
|---|---|
java.lang.String |
extension |
java.lang.String |
name |
java.util.Map<java.lang.String, java.lang.String> |
parameters |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static MimeType[] |
createDefaults()Creates the default MimeType configuration used when none is supplied via the grails.mime.types setting. |
|
boolean |
equals(java.lang.Object o) |
|
static MimeType[] |
getConfiguredMimeTypes()
|
|
java.lang.String |
getQuality()
|
|
BigDecimal |
getQualityAsNumber()
|
|
java.lang.String |
getVersion()
|
|
int |
hashCode() |
|
java.lang.String |
toString() |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
The bean name used to store the mime type definitions
Creates the default MimeType configuration used when none is supplied via the
grails.mime.types setting. The defaults mirror the full set of MIME types that new
Grails applications have historically declared in application.yml, so content
negotiation works out of the box without any configuration. User supplied configuration is
merged over these defaults, overriding them per extension.