Interface MediaType


public interface MediaType
Common media types used by controllers.
  • Field Details

    • APPLICATION_XML

      static final String APPLICATION_XML
      A String constant representing "application/xml" media type.
      See Also:
    • APPLICATION_ATOM_XML

      static final String APPLICATION_ATOM_XML
      A String constant representing "application/atom+xml" media type.
      See Also:
    • APPLICATION_XHTML_XML

      static final String APPLICATION_XHTML_XML
      A String constant representing "application/xhtml+xml" media type.
      See Also:
    • APPLICATION_SVG_XML

      static final String APPLICATION_SVG_XML
      A String constant representing "application/svg+xml" media type.
      See Also:
    • APPLICATION_JSON

      static final String APPLICATION_JSON
      A String constant representing "application/json" media type.
      See Also:
    • APPLICATION_FORM_URLENCODED

      static final String APPLICATION_FORM_URLENCODED
      A String constant representing "application/x-www-form-urlencoded" media type.
      See Also:
    • MULTIPART_FORM_DATA

      static final String MULTIPART_FORM_DATA
      A String constant representing "multipart/form-data" media type.
      See Also:
    • APPLICATION_OCTET_STREAM

      static final String APPLICATION_OCTET_STREAM
      A String constant representing "application/octet-stream" media type.
      See Also:
    • TEXT_PLAIN

      static final String TEXT_PLAIN
      A String constant representing "text/plain" media type.
      See Also:
    • TEXT_XML

      static final String TEXT_XML
      A String constant representing "text/xml" media type.
      See Also:
    • TEXT_HTML

      static final String TEXT_HTML
      A String constant representing "text/html" media type.
      See Also:
    • SERVER_SENT_EVENTS

      static final String SERVER_SENT_EVENTS
      String representation of Server sent events media type. (""text/event-stream"").
      See Also:
    • APPLICATION_JSON_PATCH_JSON

      static final String APPLICATION_JSON_PATCH_JSON
      String representation of "application/json-patch+json" media type..
      See Also:
    • APPLICATION_PDF

      static final String APPLICATION_PDF
      String representation of "application/pdf" media type.
      See Also:
    • IMAGE_GIF

      static final String IMAGE_GIF
      String representation of "image/gif" media type.
      See Also:
    • IMAGE_JPEG

      static final String IMAGE_JPEG
      String representation of "image/jpeg" media type.
      See Also:
    • IMAGE_PNG

      static final String IMAGE_PNG
      String representation of "image/png" media type.
      See Also:
    • MULTIPART_MIXED

      static final String MULTIPART_MIXED
      String representation of "multipart/mixed" media type.
      See Also: