Package io.qameta.allure.attachment
Class DefaultAttachmentContent
java.lang.Object
io.qameta.allure.attachment.DefaultAttachmentContent
- All Implemented Interfaces:
AttachmentContent
Supports Allure attachment integration with Allure reporting.
Use this type through the module that owns it when translating framework execution, result metadata, or attachments into Allure report data.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultAttachmentContent(String content, String contentType, String fileExtension) Creates a default attachment content with the supplied values. -
Method Summary
Modifier and TypeMethodDescriptionReturns the content.Returns the content type.Returns the file extension.
-
Constructor Details
-
DefaultAttachmentContent
Creates a default attachment content with the supplied values.- Parameters:
content- the attachment contentcontentType- the attachment content typefileExtension- the attachment file extension
-
-
Method Details
-
getContent
Returns the content.- Specified by:
getContentin interfaceAttachmentContent- Returns:
- the content
-
getContentType
Returns the content type.- Specified by:
getContentTypein interfaceAttachmentContent- Returns:
- the content type
-
getFileExtension
Returns the file extension.- Specified by:
getFileExtensionin interfaceAttachmentContent- Returns:
- the file extension
-