Enum MimeType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<MimeType>

    public enum MimeType
    extends java.lang.Enum<MimeType>
    This enum defines MIME types that are recognised by Burp.
    • Enum Constant Detail

      • NONE

        public static final MimeType NONE
      • UNRECOGNIZED

        public static final MimeType UNRECOGNIZED
      • AMBIGUOUS

        public static final MimeType AMBIGUOUS
      • HTML

        public static final MimeType HTML
      • PLAIN_TEXT

        public static final MimeType PLAIN_TEXT
      • SCRIPT

        public static final MimeType SCRIPT
      • JSON

        public static final MimeType JSON
      • YAML

        public static final MimeType YAML
      • IMAGE_UNKNOWN

        public static final MimeType IMAGE_UNKNOWN
      • IMAGE_JPEG

        public static final MimeType IMAGE_JPEG
      • IMAGE_GIF

        public static final MimeType IMAGE_GIF
      • IMAGE_PNG

        public static final MimeType IMAGE_PNG
      • IMAGE_BMP

        public static final MimeType IMAGE_BMP
      • IMAGE_TIFF

        public static final MimeType IMAGE_TIFF
      • IMAGE_SVG_XML

        public static final MimeType IMAGE_SVG_XML
      • SOUND

        public static final MimeType SOUND
      • VIDEO

        public static final MimeType VIDEO
      • APPLICATION_FLASH

        public static final MimeType APPLICATION_FLASH
      • APPLICATION_UNKNOWN

        public static final MimeType APPLICATION_UNKNOWN
      • LEGACY_SER_AMF

        public static final MimeType LEGACY_SER_AMF
    • Method Detail

      • values

        public static MimeType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MimeType c : MimeType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MimeType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • description

        public java.lang.String description()
        Returns:
        MIME type description.