Class MarkdownMediaTypes

java.lang.Object
dev.enola.common.io.mediatype.MarkdownMediaTypes
All Implemented Interfaces:
MediaTypeProvider, ResourceMediaTypeDetector

public class MarkdownMediaTypes extends Object implements MediaTypeProvider
The "text/markdown" media type, as per RFC 7763 (and RFC 7764).
  • Field Details

    • MARKDOWN_UTF_8

      public static final com.google.common.net.MediaType MARKDOWN_UTF_8
    • COMMON_MARKDOWN_UTF_8

      public static final com.google.common.net.MediaType COMMON_MARKDOWN_UTF_8
    • GFM_MARKDOWN_UTF_8

      public static final com.google.common.net.MediaType GFM_MARKDOWN_UTF_8
  • Constructor Details

    • MarkdownMediaTypes

      public MarkdownMediaTypes()
  • Method Details

    • extensionsToTypes

      public com.google.common.collect.Multimap<String,com.google.common.net.MediaType> extensionsToTypes()
      Description copied from interface: MediaTypeProvider
      Maps the URI path "extension" (WITH the dot; or not, filenames such as "README" are also permitted!) to its "canonical" Media Types. This should only be used for "informational" listing kind of output. To actually determine a MediaType, please use MediaTypeProvider.detect(String, ByteSource, MediaType) instead.
      Specified by:
      extensionsToTypes in interface MediaTypeProvider
    • knownTypesWithAlternatives

      public Map<com.google.common.net.MediaType,Set<com.google.common.net.MediaType>> knownTypesWithAlternatives()
      Description copied from interface: MediaTypeProvider
      Maps "canonical" (primary) Media Types to a set of its "also known as alternatives".
      Specified by:
      knownTypesWithAlternatives in interface MediaTypeProvider