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
FieldsModifier and TypeFieldDescriptionstatic final MediaTypePublic constant media type forapplication/alps+json.static final StringA String equivalent ofALPS_JSON.static final MediaTypePublic constant media type forapplication/vnd.collection+json.static final StringA String equivalent ofCOLLECTION_JSON.static final MediaTypePublic constant media type forapplicatino/prs.hal-forms+json.static final StringPublic constant media type forapplication/prs.hal-forms+json.static final MediaTypePublic constant media type forapplication/hal+json.static final StringA String equivalent ofHAL_JSON.static final MediaTypePublic constant media type forapplication/problem+json.static final StringA String equivalent ofHTTP_PROBLEM_DETAILS_JSON_VALUE.static final MediaTypePublic constant media type forapplication/vnd.amundsen-uber+json.static final StringA String equivalent ofUBER_JSON_VALUE.static final MediaTypePublic constant media type forapplication/vnd.error+json.static final StringA String equivalent ofVND_ERROR_JSON. -
Constructor Summary
Constructors -
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()
-