001package io.dinject.controller;
002
003/**
004 * Common media types used by controllers.
005 */
006public interface MediaType {
007
008  /**
009   * A {@code String} constant representing {@value #APPLICATION_XML} media type.
010   */
011  String APPLICATION_XML = "application/xml";
012
013  /**
014   * A {@code String} constant representing {@value #APPLICATION_ATOM_XML} media type.
015   */
016  String APPLICATION_ATOM_XML = "application/atom+xml";
017
018  /**
019   * A {@code String} constant representing {@value #APPLICATION_XHTML_XML} media type.
020   */
021  String APPLICATION_XHTML_XML = "application/xhtml+xml";
022
023  /**
024   * A {@code String} constant representing {@value #APPLICATION_SVG_XML} media type.
025   */
026  String APPLICATION_SVG_XML = "application/svg+xml";
027
028  /**
029   * A {@code String} constant representing {@value #APPLICATION_JSON} media type.
030   */
031  String APPLICATION_JSON = "application/json";
032
033  /**
034   * A {@code String} constant representing {@value #APPLICATION_FORM_URLENCODED} media type.
035   */
036  String APPLICATION_FORM_URLENCODED = "application/x-www-form-urlencoded";
037
038
039  /**
040   * A {@code String} constant representing {@value #MULTIPART_FORM_DATA} media type.
041   */
042  String MULTIPART_FORM_DATA = "multipart/form-data";
043
044  /**
045   * A {@code String} constant representing {@value #APPLICATION_OCTET_STREAM} media type.
046   */
047  String APPLICATION_OCTET_STREAM = "application/octet-stream";
048
049  /**
050   * A {@code String} constant representing {@value #TEXT_PLAIN} media type.
051   */
052  String TEXT_PLAIN = "text/plain";
053
054
055  /**
056   * A {@code String} constant representing {@value #TEXT_XML} media type.
057   */
058  String TEXT_XML = "text/xml";
059
060  /**
061   * A {@code String} constant representing {@value #TEXT_HTML} media type.
062   */
063  String TEXT_HTML = "text/html";
064
065  /**
066   * {@link String} representation of Server sent events media type. ("{@value}").
067   */
068  String SERVER_SENT_EVENTS = "text/event-stream";
069
070  /**
071   * {@link String} representation of {@value #APPLICATION_JSON_PATCH_JSON} media type..
072   */
073  String APPLICATION_JSON_PATCH_JSON = "application/json-patch+json";
074
075}