java.lang.Object
io.inverno.mod.base.resource.MediaTypes
A collection of well known media types.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
application/grpc
static final String
application/grpc+json
static final String
application/grpc+proto
static final String
application/jose
static final String
application/jose+json
static final String
application/json
static final String
application/jwk+json
static final String
application/jwk-set+json
static final String
application/jwt
static final String
application/octet-stream
static final String
application/x-ndjson
static final String
application/x-www-form-urlencoded
static final String
application/xml
static final String
multipart/form-data
static final String
multipart/mixed
static final String
text/event-stream
static final String
text/html
static final String
text/plain
static final String
text/xml
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
normalizeApplicationMediaType
(String mediaType) Normalizes the specified media type.
-
Field Details
-
APPLICATION_GRPC
application/grpc
- See Also:
-
APPLICATION_GRPC_JSON
application/grpc+json
- See Also:
-
APPLICATION_GRPC_PROTO
application/grpc+proto
- See Also:
-
APPLICATION_JOSE
application/jose
- See Also:
-
APPLICATION_JOSE_JSON
application/jose+json
- See Also:
-
APPLICATION_JSON
application/json
- See Also:
-
APPLICATION_JWK_JSON
application/jwk+json
- See Also:
-
APPLICATION_JWK_SET_JSON
application/jwk-set+json
- See Also:
-
APPLICATION_JWT
application/jwt
- See Also:
-
APPLICATION_OCTET_STREAM
application/octet-stream
- See Also:
-
APPLICATION_X_NDJSON
application/x-ndjson
- See Also:
-
APPLICATION_X_WWW_FORM_URLENCODED
application/x-www-form-urlencoded
- See Also:
-
APPLICATION_XML
application/xml
- See Also:
-
MULTIPART_FORM_DATA
multipart/form-data
- See Also:
-
MULTIPART_MIXED
multipart/mixed
- See Also:
-
TEXT_EVENT_STREAM
text/event-stream
- See Also:
-
TEXT_HTML
text/html
- See Also:
-
TEXT_PLAIN
text/plain
- See Also:
-
TEXT_XML
text/xml
- See Also:
-
-
Constructor Details
-
MediaTypes
public MediaTypes()
-
-
Method Details
-
normalizeApplicationMediaType
Normalizes the specified media type.
This method basically restores the missing
application/
prefix omitted for compactness. This reduced syntax can be used for instance in a JOSE header content type parameter or in a Websocket subprotocol.- Parameters:
mediaType
- a media type- Returns:
- a normalized application media type
-