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.MediaTypeThe media typeapplication/jop+jsonstatic final StringThe media typeapplication/jop+jsonstatic final org.springframework.http.MediaTypeThe media typeapplication/hal+jsonstatic final StringString value of the media typeapplication/hal+jsonstatic final org.springframework.http.MediaTypeThe media typeapplication/home+jsonstatic final StringString value of the media typeapplication/home+jsonstatic final org.springframework.http.MediaTypeThe media typeapplication/*+jsonstatic final StringString value of the media typeapplication/*+jsonstatic final org.springframework.http.MediaTypeThe media typeapplication/vnd.emc.documentum+jsonstatic final StringString value of the media typeapplication/vnd.emc.documentum+jsonstatic final org.springframework.http.MediaTypeThe media typeapplication/vnd.emc.documentum+xmlstatic final StringString value of the media typeapplication/vnd.emc.documentum+xmlstatic final org.springframework.http.MediaTypeThe media typeapplication/vnd.emc.xplore+xmlstatic final StringString value of media tyeapplication/vnd.emc.xplore+xmlstatic final org.springframework.http.MediaTypeThe media typeapplication/home+xmlstatic final StringString value of the media typeapplication/home+xmlstatic final org.springframework.http.MediaTypeThe media typeapplication/*+xmlstatic final StringString value of the media typeapplication/*+xmlstatic final org.springframework.http.MediaTypeThe media typeapplication/xop+xmlstatic final StringThe media typeapplication/xop+xmlstatic final org.springframework.http.MediaTypeThe media typeapplication/zipstatic final StringString value of the media typeapplication/zipstatic final org.springframework.http.MediaTypeThe media typemultipart/mixedstatic final org.springframework.http.MediaTypeThe media typemultipart/relatedstatic final StringThe media typemultipart/relatedstatic 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.MediaTypeDeprecated.the method is not used any morestatic org.springframework.http.MediaTypeDeprecated.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 StringstandardFormatExt(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.
-