java.lang.Object
org.klomp.snark.web.I2PSnarkServlet.IconMaps
Enclosing class:
I2PSnarkServlet

private static class I2PSnarkServlet.IconMapsextends Object
Holds immutable mappings from MIME types and file suffixes to icon names.

SUFFIX_ICON_MAP is only safe to look up by suffix because no key is a suffix of another - see I2PSnarkServlet.suffixIcon(String).

  • Field Details

    • MIME_ICON_MAP

      static final Map<String,String> MIME_ICON_MAP
      Icon file name for each MIME type.
    • SUFFIX_ICON_MAP

      static final Map<String,String> SUFFIX_ICON_MAP
      Icon file name for each file suffix.
  • Constructor Details

    • IconMaps

      private IconMaps()
      Holds the icon state for the torrent page.