| Modifier and Type | Field and Description |
|---|---|
static ContentType |
ContentType.APPLICATION_JOSE
Content type
application/jose; charset=UTF-8. |
static ContentType |
ContentType.APPLICATION_JSON
Content type
application/json; charset=UTF-8. |
static ContentType |
ContentType.APPLICATION_JWT
Content type
application/jwt; charset=UTF-8. |
static ContentType |
ContentType.APPLICATION_PDF
Content type
application/pdf. |
static ContentType |
ContentType.APPLICATION_URLENCODED
Content type
application/x-www-form-urlencoded; charset=UTF-8. |
static ContentType |
ContentType.IMAGE_APNG
Content type
image/apng. |
static ContentType |
ContentType.IMAGE_AVIF
Content type
image/avif. |
static ContentType |
ContentType.IMAGE_GIF
Content type
image/gif. |
static ContentType |
ContentType.IMAGE_JPEG
Content type
image/jpeg. |
static ContentType |
ContentType.IMAGE_PNG
Content type
image/png. |
static ContentType |
ContentType.IMAGE_SVG_XML
Content type
image/svg+xml. |
static ContentType |
ContentType.IMAGE_WEBP
Content type
image/webp. |
static ContentType |
ContentType.TEXT_PLAIN
Content type
text/plain; charset=UTF-8. |
| Modifier and Type | Method and Description |
|---|---|
static ContentType |
ContentType.parse(String s)
Parses a content type from the specified string.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ContentType.matches(ContentType other)
Returns
true if the types and subtypes match. |
Copyright © 2021 Connect2id Ltd.. All rights reserved.