Class PlatformMediaType
- java.lang.Object
-
- javax.ws.rs.core.MediaType
-
- com.cumulocity.rest.representation.CumulocityMediaType
-
- com.cumulocity.rest.representation.platform.PlatformMediaType
-
public class PlatformMediaType extends CumulocityMediaType
We follow here convention fromMediaType
class, where we have bothMediaType
instances, and string representations (with '_TYPE' suffix in name).
-
-
Field Summary
Fields Modifier and Type Field Description static PlatformMediaType
PLATFORM_API
static String
PLATFORM_API_TYPE
-
Fields inherited from class com.cumulocity.rest.representation.CumulocityMediaType
APPLICATION_JSON_STREAM, APPLICATION_JSON_STREAM_TYPE, APPLICATION_VND_COM_NSN_CUMULOCITY, ERROR_MESSAGE, ERROR_MESSAGE_TYPE, VND_COM_NSN_CUMULOCITY, VND_COM_NSN_CUMULOCITY_CHARSET, VND_COM_NSN_CUMULOCITY_PARAMS, VND_COM_NSN_CUMULOCITY_VERSION
-
Fields inherited from class javax.ws.rs.core.MediaType
APPLICATION_ATOM_XML, APPLICATION_ATOM_XML_TYPE, APPLICATION_FORM_URLENCODED, APPLICATION_FORM_URLENCODED_TYPE, APPLICATION_JSON, APPLICATION_JSON_PATCH_JSON, APPLICATION_JSON_PATCH_JSON_TYPE, APPLICATION_JSON_TYPE, APPLICATION_OCTET_STREAM, APPLICATION_OCTET_STREAM_TYPE, APPLICATION_SVG_XML, APPLICATION_SVG_XML_TYPE, APPLICATION_XHTML_XML, APPLICATION_XHTML_XML_TYPE, APPLICATION_XML, APPLICATION_XML_TYPE, CHARSET_PARAMETER, MEDIA_TYPE_WILDCARD, MULTIPART_FORM_DATA, MULTIPART_FORM_DATA_TYPE, SERVER_SENT_EVENTS, SERVER_SENT_EVENTS_TYPE, TEXT_HTML, TEXT_HTML_TYPE, TEXT_PLAIN, TEXT_PLAIN_TYPE, TEXT_XML, TEXT_XML_TYPE, WILDCARD, WILDCARD_TYPE
-
-
Constructor Summary
Constructors Constructor Description PlatformMediaType(String string)
-
Method Summary
-
Methods inherited from class com.cumulocity.rest.representation.CumulocityMediaType
getTypeString, withParams
-
-
-
-
Field Detail
-
PLATFORM_API
public static final PlatformMediaType PLATFORM_API
-
PLATFORM_API_TYPE
public static final String PLATFORM_API_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PlatformMediaType
public PlatformMediaType(String string)
-
-