Package org.springframework.hateoas
Class MediaTypes
java.lang.Object
org.springframework.hateoas.MediaTypes
Constants for well-known hypermedia types.
- Author:
- Oliver Gierke, Przemek Nowak, Drummond Dawson, Greg Turnquist
-
Field Summary
Modifier and TypeFieldDescriptionstatic final MediaType
Public constant media type forapplication/alps+json
.static final String
A String equivalent ofALPS_JSON
.static final MediaType
Public constant media type forapplication/vnd.collection+json
.static final String
A String equivalent ofCOLLECTION_JSON
.static final MediaType
Public constant media type forapplicatino/prs.hal-forms+json
.static final String
Public constant media type forapplication/prs.hal-forms+json
.static final MediaType
Public constant media type forapplication/hal+json
.static final String
A String equivalent ofHAL_JSON
.static final MediaType
Public constant media type forapplication/problem+json
.static final String
A String equivalent ofHTTP_PROBLEM_DETAILS_JSON_VALUE
.static final MediaType
Public constant media type forapplication/vnd.amundsen-uber+json
.static final String
A String equivalent ofUBER_JSON_VALUE
.static final MediaType
Public constant media type forapplication/vnd.error+json
.static final String
A String equivalent ofVND_ERROR_JSON
. -
Constructor Summary
-
Method Summary
-
Field Details
-
HAL_JSON_VALUE
A String equivalent ofHAL_JSON
.- See Also:
-
HAL_JSON
Public constant media type forapplication/hal+json
. -
ALPS_JSON_VALUE
A String equivalent ofALPS_JSON
.- See Also:
-
ALPS_JSON
Public constant media type forapplication/alps+json
. -
HAL_FORMS_JSON_VALUE
Public constant media type forapplication/prs.hal-forms+json
.- See Also:
-
HAL_FORMS_JSON
Public constant media type forapplicatino/prs.hal-forms+json
. -
COLLECTION_JSON_VALUE
A String equivalent ofCOLLECTION_JSON
.- See Also:
-
COLLECTION_JSON
Public constant media type forapplication/vnd.collection+json
. -
UBER_JSON_VALUE
A String equivalent ofUBER_JSON_VALUE
.- See Also:
-
UBER_JSON
Public constant media type forapplication/vnd.amundsen-uber+json
. -
VND_ERROR_JSON_VALUE
A String equivalent ofVND_ERROR_JSON
.- See Also:
-
VND_ERROR_JSON
Public constant media type forapplication/vnd.error+json
. -
HTTP_PROBLEM_DETAILS_JSON_VALUE
A String equivalent ofHTTP_PROBLEM_DETAILS_JSON_VALUE
.- See Also:
-
HTTP_PROBLEM_DETAILS_JSON
Public constant media type forapplication/problem+json
.
-
-
Constructor Details
-
MediaTypes
public MediaTypes()
-