Class AttachmentType

java.lang.Object
io.qameta.allure.model.AttachmentType

public final class AttachmentType extends Object
Common attachment media types and file extensions.
  • Field Details

    • PNG

      public static final AttachmentType PNG
      Predefined attachment type for png content.
    • JPEG

      public static final AttachmentType JPEG
      Predefined attachment type for jpeg content.
    • TEXT

      public static final AttachmentType TEXT
      Predefined attachment type for text content.
    • HTML

      public static final AttachmentType HTML
      Predefined attachment type for html content.
    • ZIP

      public static final AttachmentType ZIP
      Predefined attachment type for zip content.
    • WEBM

      public static final AttachmentType WEBM
      Predefined attachment type for webm content.
    • OCTET_STREAM

      public static final AttachmentType OCTET_STREAM
      Predefined attachment type for octet stream content.
  • Method Details

    • getMediaType

      public String getMediaType()
      Returns the media type.
      Returns:
      the media type
    • getExtension

      public String getExtension()
      Returns the extension.
      Returns:
      the extension