public class ApiMediaTypes extends Object
MediaType values, which will
trigger Spring HATEOAS hypermedia annotation.| Modifier and Type | Field and Description |
|---|---|
static String[] |
ACCEPTED_MEDIA_TYPE_VALUES |
static org.springframework.http.MediaType[] |
ACCEPTED_MEDIA_TYPES |
static org.springframework.http.MediaType |
APPLICATION_HAL_JSON |
static String |
APPLICATION_HAL_JSON_VALUE |
static org.springframework.http.MediaType |
APPLICATION_HAL_XML |
static String |
APPLICATION_HAL_XML_VALUE |
static org.springframework.http.MediaType |
TEXT_PLAIN_UTF8 |
static String |
TEXT_PLAIN_UTF8_VALUE |
| Constructor and Description |
|---|
ApiMediaTypes() |
| Modifier and Type | Method and Description |
|---|---|
static List<org.springframework.http.MediaType> |
getHalMediaTypes() |
static List<String> |
getHalMediaTypeValues() |
static List<org.springframework.http.MediaType> |
getJsonMediaTypes() |
static List<org.springframework.http.MediaType> |
getXmlMediaTypes() |
static boolean |
isHalMediaType(org.springframework.http.MediaType mediaType) |
static boolean |
isHalMediaType(String mediaType) |
public static final String APPLICATION_HAL_JSON_VALUE
public static final org.springframework.http.MediaType APPLICATION_HAL_JSON
public static final String APPLICATION_HAL_XML_VALUE
public static final org.springframework.http.MediaType APPLICATION_HAL_XML
public static final String TEXT_PLAIN_UTF8_VALUE
public static final org.springframework.http.MediaType TEXT_PLAIN_UTF8
public static final String[] ACCEPTED_MEDIA_TYPE_VALUES
public static final org.springframework.http.MediaType[] ACCEPTED_MEDIA_TYPES
public static boolean isHalMediaType(String mediaType)
public static boolean isHalMediaType(org.springframework.http.MediaType mediaType)
public static List<org.springframework.http.MediaType> getHalMediaTypes()
public static List<org.springframework.http.MediaType> getJsonMediaTypes()
public static List<org.springframework.http.MediaType> getXmlMediaTypes()
Copyright © 2016. All rights reserved.