Package com.emc.documentum.rest.http
Class SupportedMediaTypes
java.lang.Object
com.emc.documentum.rest.http.SupportedMediaTypes
A class that holds all supported media types and their format extensions
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.springframework.http.MediaType
The media typeapplication/jop+json
static final String
The media typeapplication/jop+json
static final org.springframework.http.MediaType
The media typeapplication/hal+json
static final String
String value of the media typeapplication/hal+json
static final org.springframework.http.MediaType
The media typeapplication/home+json
static final String
String value of the media typeapplication/home+json
static final org.springframework.http.MediaType
The media typeapplication/*+json
static final String
String value of the media typeapplication/*+json
static final org.springframework.http.MediaType
The media typeapplication/vnd.emc.documentum+json
static final String
String value of the media typeapplication/vnd.emc.documentum+json
static final org.springframework.http.MediaType
The media typeapplication/vnd.emc.documentum+xml
static final String
String value of the media typeapplication/vnd.emc.documentum+xml
static final org.springframework.http.MediaType
The media typeapplication/vnd.emc.xplore+xml
static final String
String value of media tyeapplication/vnd.emc.xplore+xml
static final org.springframework.http.MediaType
The media typeapplication/home+xml
static final String
String value of the media typeapplication/home+xml
static final org.springframework.http.MediaType
The media typeapplication/*+xml
static final String
String value of the media typeapplication/*+xml
static final org.springframework.http.MediaType
The media typeapplication/xop+xml
static final String
The media typeapplication/xop+xml
static final org.springframework.http.MediaType
The media typeapplication/zip
static final String
String value of the media typeapplication/zip
static final org.springframework.http.MediaType
The media typemultipart/mixed
static final org.springframework.http.MediaType
The media typemultipart/related
static final String
The media typemultipart/related
static final org.springframework.http.MediaType[]
static final org.springframework.http.MediaType[]
static final org.springframework.http.MediaType[]
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<org.springframework.http.MediaType>
all()
Deprecated.the method is not used any morestatic org.springframework.http.MediaType
Deprecated.the method is not used any morestatic org.springframework.http.MediaType
Deprecated.the method is not used any morestatic List<org.springframework.http.MediaType>
Deprecated.the method is not used any morestatic List<org.springframework.http.MediaType>
getMediaTypes
(String mediaType) Get the media type list for the supported media type stringstatic String
standardFormatExt
(String requestUri) Get standard URI format extension from the URIstatic String[]
Return the supported consumable media types at runtime setting.
-
Field Details
-
APPLICATION_VND_DCTM_XML_STRING
String value of the media typeapplication/vnd.emc.documentum+xml
- See Also:
-
APPLICATION_VND_DCTM_JSON_STRING
String value of the media typeapplication/vnd.emc.documentum+json
- See Also:
-
APPLICATION_JSON_HOME_STRING
String value of the media typeapplication/home+json
- See Also:
-
APPLICATION_XML_HOME_STRING
String value of the media typeapplication/home+xml
- See Also:
-
APPLICATION_JSON_HAL_STRING
String value of the media typeapplication/hal+json
- See Also:
-
APPLICATION_JSON_WILD_STRING
String value of the media typeapplication/*+json
- See Also:
-
APPLICATION_XML_WILD_STRING
String value of the media typeapplication/*+xml
- See Also:
-
APPLICATION_ZIP_STRING
String value of the media typeapplication/zip
- See Also:
-
APPLICATION_VND_XPLORE_XML_STRING
String value of media tyeapplication/vnd.emc.xplore+xml
- See Also:
-
APPLICATION_VND_DCTM_XML
public static final org.springframework.http.MediaType APPLICATION_VND_DCTM_XMLThe media typeapplication/vnd.emc.documentum+xml
-
APPLICATION_VND_DCTM_JSON
public static final org.springframework.http.MediaType APPLICATION_VND_DCTM_JSONThe media typeapplication/vnd.emc.documentum+json
-
APPLICATION_JSON_HOME
public static final org.springframework.http.MediaType APPLICATION_JSON_HOMEThe media typeapplication/home+json
-
APPLICATION_XML_HOME
public static final org.springframework.http.MediaType APPLICATION_XML_HOMEThe media typeapplication/home+xml
-
APPLICATION_JSON_HAL
public static final org.springframework.http.MediaType APPLICATION_JSON_HALThe media typeapplication/hal+json
-
MULTIPART_MIXED
public static final org.springframework.http.MediaType MULTIPART_MIXEDThe media typemultipart/mixed
-
MULTIPART_RELATED_STRING
The media typemultipart/related
- See Also:
-
MULTIPART_RELATED
public static final org.springframework.http.MediaType MULTIPART_RELATEDThe media typemultipart/related
-
APPLICATION_XOP_STRING
The media typeapplication/xop+xml
- See Also:
-
APPLICATION_JOP_STRING
The media typeapplication/jop+json
- See Also:
-
APPLICATION_XOP
public static final org.springframework.http.MediaType APPLICATION_XOPThe media typeapplication/xop+xml
-
APPLICATION_JOP
public static final org.springframework.http.MediaType APPLICATION_JOPThe media typeapplication/jop+json
-
APPLICATION_JSON_WILD
public static final org.springframework.http.MediaType APPLICATION_JSON_WILDThe media typeapplication/*+json
-
APPLICATION_XML_WILD
public static final org.springframework.http.MediaType APPLICATION_XML_WILDThe media typeapplication/*+xml
-
APPLICATION_ZIP
public static final org.springframework.http.MediaType APPLICATION_ZIPThe media typeapplication/zip
-
APPLICATION_VND_XPLORE_XML
public static final org.springframework.http.MediaType APPLICATION_VND_XPLORE_XMLThe media typeapplication/vnd.emc.xplore+xml
-
WRITABLE_XML_MEDIA_TYPES
public static final org.springframework.http.MediaType[] WRITABLE_XML_MEDIA_TYPES -
WRITABLE_JSON_MEDIA_TYPES
public static final org.springframework.http.MediaType[] WRITABLE_JSON_MEDIA_TYPES -
WRITABLE_HAL_MEDIA_TYPES
public static final org.springframework.http.MediaType[] WRITABLE_HAL_MEDIA_TYPES
-
-
Method Details
-
defaultMediaType
Deprecated.the method is not used any moreDefault media type to fallback to. The default media type can be configured in the runtime property 'rest.default.media.type'. If it is not set, the media type 'application/vnd.emc.documentum+json' will be returned.- Returns:
- the default media type
-
defaultAtomEntryMediaType
Deprecated.the method is not used any moreDefault media type to fallback to. The default media type can be configured in the runtime property 'rest.default.atom.entry.media.type'. If it is not set, the media type 'application/vnd.emc.documentum+xml' will be returned.- Returns:
- the default media type for the resource in atom entry
-
standardFormatExt
Get standard URI format extension from the URI- Parameters:
requestUri
- the request URI- Returns:
- the format extension of the URI
-
all
Deprecated.the method is not used any moreReturn a list of supported media types with default order- Returns:
- a list of supported MediaType
-
get
Deprecated.the method is not used any moreReturn a list of MediaType according to some format extension provided- Parameters:
formatExt
- the format extension provided, case insensitive- Returns:
- a list of MediaType for that format extension
-
getMediaTypes
Get the media type list for the supported media type string- Parameters:
mediaType
- the media type string- Returns:
- the list of MediaType of specified media type
-
supportedConsumableMediaType
Return the supported consumable media types at runtime setting.- Returns:
- the supported consumable media types.
-